You can try using src = "./css/main.css" first.
When working with multiple live sites, I like to configure one configuration file for each site using apache, and then upload them all together to the httpd.conf file.
for my setup it looks like this:
in / etc / apache 2 / httpd.conf
I have:
Include conf/bortreb.conf
Include conf/rlmcintyre.conf
Include conf/laserkard.conf
Include conf/judyates.conf
and then in / etc / apache 2 / conf / judyates.conf
I have:
<VirtualHost *:80>
ServerAdmin email@example.com
DocumentRoot "/home/r/Desktop/web/judyates"
ServerName localhost
ServerAlias judyates.localhost
ErrorLog "/home/r/Desktop/web/judyates/log/error_log.log"
ScriptAlias /cgi-bin/ "/home/r/Desktop/web/judyates/cgi-bin/"
<Directory "/home/r/Desktop/web/judyates">
Options Indexes FollowSymLinks
Options +ExecCGI
AddHandler cgi-script cgi pl py
AllowOverride Options
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin email@example.com
DocumentRoot "/home/r/Desktop/web/judyates"
ServerName judyates.com
ServerAlias *.judyates.com
ErrorLog "/home/r/Desktop/web/judyates/log/error_log.log"
ScriptAlias /cgi-bin/ "/home/r/Desktop/web/judyates/cgi-bin/"
<Directory "/home/r/Desktop/web/judyates">
Options Indexes FollowSymLinks
Options +ExecCGI
AddHandler cgi-script cgi pl py
AllowOverride Options
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
This method works very well, because you can set yoursite.localhost subdomain to return to your home IP address.
With this setting, when I work on judyates.com on my computer and want to test anythig, I just go to judyates.localhost in my web browser.
5 , *.conf , , , .
.
, , :
http://digitalpbk.blogspot.com/2007/01/making-subdomains-on-localhost.html
, . , , apache, . , judyates.com , , , , .