It seems you only redirect /lab, but the static files are not in /lab, they are in /static.
So you should also redirect /static so that these files can be accessed.
Another way would be to just place the static files into the appropriate Apache directory.
Edit
The error message about file not found says
C:/apache24/htdocs/static/css/main.00e8fde0.css
Assuming The DocumentRoot is C:/apache24/htdocs that means the URL to access the file is /static/css/main.00e8fde0.css.
magento 1.9 - .js and .css files suddenly giving 404, making the entire website become without any formatting or functionality! - Magento Stack Exchange
apache - Why doesn't the CSS on the server error page work? - Stack Overflow
css - apache cant reach html subdirectories and getting 404 error - Stack Overflow
apache - Will broken css/image link 404 errors affect server performance under load? - Stack Overflow
It looks like there was an alias in your ./conf.d/javascript-common.conf: file that was causing Apache to look in the wrong place. As you noted, deleting those entries fixed the problem and Apache was happy.
This worked for me
sudo a2disconf javascript-common
This removes the javascript-common.conf from conf-available and conf-enabled.
as per the yahoo instructions on website front end engeneering
*No 404s
HTTP requests are expensive so making an HTTP request and getting a useless response (i.e. 404 Not Found) is totally unnecessary and will slow down the user experience without any benefit. Some sites have helpful 404s "Did you mean X?", which is great for the user experience but also wastes server resources (like database, etc). Particularly bad is when the link to an external JavaScript is wrong and the result is a 404. First, this download will block parallel downloads. Next the browser may try to parse the 404 response body as if it were JavaScript code, trying to find something usable in it.*
Coming back to your question : error 404 can in worst cases cause your machine to stop.
As commenter ajreal said served documents will increase the resource allocation, but any server responding to a request will acquire some resources.
You have a relative path to the <img> src. The actual image is at /errors/rajni.jpg. Thus the image will only load if the path is in /errors. To fix this, simply change the src:
<img src="/errors/rajni.jpg">
How apache serves it is different than how the browser requests it. The browser must make a separate HTTP request for every resource it downloads including the image. It makes one request to /not/a/page. Apache sees /not/a/page and returnsHTTP: 404; html=(basically). The browser parses HTML, displays, and seessrc=rajni.jpg. Then it makes another request:GET HTTP 1.1 /not/a/page/rajni.jpg`. Apache is happy to respond with another 404
Use following line:-
<img src="http://example.co.in/errors/rajni.jpg">
First thing to check is your .htaccess file.
Remove everything in it and use the code sample provided by EllisLab in the docs for removing index.php: https://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
First, look at your htaccess file. It looks like you're able to access other files with a .js extension, so your javascript folder is probably ok. You might just be setting your file path to a file that isn't case-sensitive correct.
Keep in mind that different operating systems handle case sensitivity differently. On OS X, files are case insensitive (same goes on Windows), while on Linux, files ARE case sensitive. So, filename.js and FileName.js are 2 different files on Linux.