LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Virtual Host problem - DNS or DHCP issue? (https://www.linuxquestions.org/questions/linux-software-2/apache-virtual-host-problem-dns-or-dhcp-issue-303946/)

Sapient 03-23-2005 05:10 AM

costrevs

I am having a similar problem. Would you mind posting your host file and listen.conf? I may have something wrong in mine, I keep getting the default Apache page.



Thanks

costrevs 03-23-2005 07:50 AM

listen.conf
=======================================
Listen 80


<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>

Listen 443

</IfModule>
</IfDefine>
</IfDefine>

=======================================
vhosts.d/local-sites.conf
=======================================

NameVirtualHost *

<VirtualHost *>
ServerName localhost
ServerAlias ortiz
DocumentRoot /srv/www/htdocs
</VirtualHost>

<VirtualHost *>
DocumentRoot /srv/www/nthdegree/public_html
ServerName nthdegree
ServerAdmin timmy@this.com
<Directory /srv/www/nthdegree/public_html>
Order Allow,Deny
Allow from all
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost *>
DocumentRoot /srv/www/cgiflexible4u/public_html
ServerName cgiflexible4u
ServerAdmin timmy@this.com
<Directory /srv/www/cgiflexible4u/public_html>
Order Allow,Deny
Allow from all
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>

=======================================
and FYI, my /etc/hosts file
=======================================

127.0.0.1 ortiz.reno.nv.us ortiz
127.0.0.2 linux.site linux

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts

# apache2 virtual hosts
#
127.0.0.1 nthdegree
127.0.0.1 cgiflexible4u


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