LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache: virtual host issue (https://www.linuxquestions.org/questions/linux-server-73/apache-virtual-host-issue-509854/)

Zeno McDohl 12-21-2006 01:31 PM

Since it brings the subdomains to ServerB, I assume it's fine. The problem is probably in the conf file which is why I asked in the first place.

phil.d.g 12-21-2006 01:41 PM

Code:

NameVirtualHost *:80

<VirtualHost *:80>
  DocumentRoot "/opt/lampp/htdocs/zeno"
  ServerName zeno.biyg.org
    <Directory "/opt/lampp/htdocs/zeno">
        allow from all
        Options +Indexes
    </Directory>
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot "/opt/lampp/htdocs/fwarlords"
  ServerName fwarlords.biyg.org
    <Directory "/opt/lampp/htdocs/fwarlords">
        allow from all
        Options +Indexes
    </Directory>
</VirtualHost>

That ought to do the trick.

Note: this is trickykid's example with one or two lines changed.

ETA: The first virtual server defined is the default.

Zeno McDohl 12-21-2006 02:59 PM

Thanks, I had to change a bit but that worked. Thanks again.


All times are GMT -5. The time now is 07:18 AM.