LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Apache Subdomains Time Out (https://www.linuxquestions.org/questions/linux-networking-3/apache-subdomains-time-out-473136/)

jroggow 08-11-2006 09:45 PM

Apache Subdomains Time Out
 
Hello all. I'm trying to set up subdomain for my web site. I've already updated the DNS records, and they seem fine. The problem I'm having is that the request times out when I try to view the subdomain. I can view my main site at neonbrainiac.nu but my subdomain library.neonbrainiac.nu times out.

My httpd.conf file has this (urls in proper format):
NameVirtualHost *:80

<VirtualHost *:80>
ServerName neonbrainiac.nu
ServerAlias neonbrainiac.nu
DocumentRoot /var/www/neonbrainiac.nu/htdocs
</VirtualHost>

<Directory /var/www/neonbrainiac.nu/htdocs>
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<VirtualHost *:80>
ServerName library.neonbrainiac.nu
ServerAlias library.neonbrainiac.nu
DocumentRoot /var/www/library.neonbrainiac.nu/htdocs
</VirtualHost>

<Directory /var/www/library.neonbrainiac.nu/htdocs>
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>

I get no error messages in the error log. Nor do I get a record in the access log.

I can't load either page from a remote machine. neonbrainiac.nu works from localhost, but not from a different machine. library.neonbrainiac works from nowhere. But the address does resolve to the correct IP address.

pk21 08-12-2006 12:03 AM

Firewall?
Did you run a tcpdump to see if the traffic arrives at your webserver?

novice06 08-12-2006 12:41 AM

try like this:

<VirtualHost your server ip:80>
DocumentRoot /var/www/library.neonbrainiac.nu/htdocs
ServerName library.neonbrainiac.nu
<Directory "/var/www/library.neonbrainiac.nu/htdocs">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

jroggow 08-12-2006 01:02 AM

Thanks for the ideas. The problem was my router. It apparently had been reset and the forwarding rule was no longer accurate.


All times are GMT -5. The time now is 12:27 PM.