Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First you might want to try using src="./css/main.css".</p> <p>When dealing with multiple live sites I like to setup a single configuration file for each site with apache and then load them all together in the httpd.conf file.</p> <p>for my setup it looks like this:</p> <p>in /etc/apache2/httpd.conf</p> <p>I have:</p> <pre><code># Begin virtual host directives. Include conf/bortreb.conf Include conf/rlmcintyre.conf Include conf/laserkard.conf Include conf/judyates.conf </code></pre> <p>and then in /etc/apache2/conf/judyates.conf</p> <p>I have:</p> <pre><code> &lt;VirtualHost *:80&gt; #localhost site 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/" &lt;Directory "/home/r/Desktop/web/judyates"&gt; Options Indexes FollowSymLinks Options +ExecCGI AddHandler cgi-script cgi pl py AllowOverride Options Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; &lt;VirtualHost *:80&gt; #live site 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/" &lt;Directory "/home/r/Desktop/web/judyates"&gt; Options Indexes FollowSymLinks Options +ExecCGI AddHandler cgi-script cgi pl py AllowOverride Options Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>This way works really well, because you can set the subdomain yoursite.localhost to loop back to your home ip address.</p> <p>With this setup, when I work on judyates.com on my computer and want to test anythig, I just go to judyates.localhost in my web browser.</p> <p>I have about 5 other sites all set up this way in their own *.conf file, so they can each live in their own directories on my computer that exactly match the directories they'll be in on the server. </p> <p>The key is to use virtual hosts to go to different sites based on the subdomain.</p> <p>You can learn how to configure subdomains that point to yourself here: <a href="http://digitalpbk.blogspot.com/2007/01/making-subdomains-on-localhost.html" rel="nofollow noreferrer">http://digitalpbk.blogspot.com/2007/01/making-subdomains-on-localhost.html</a></p> <p>My setup goes even one step further because I setup the server too. Whenever I want to update I load both the webfiles AND the apache config files, and that way the server exactly mirrors my local setup. The only difference is that the real judyates.com points to the server and not my home computer, so when people try to visit the site they get everything from the server.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload