LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2006, 09:45 PM   #1
jroggow
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
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.
 
Old 08-12-2006, 12:03 AM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Firewall?
Did you run a tcpdump to see if the traffic arrives at your webserver?
 
Old 08-12-2006, 12:41 AM   #3
novice06
Member
 
Registered: Mar 2006
Location: Singapore
Distribution: RHEL, CentOS
Posts: 132

Rep: Reputation: 23
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>
 
Old 08-12-2006, 01:02 AM   #4
jroggow
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks for the ideas. The problem was my router. It apparently had been reset and the forwarding rule was no longer accurate.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zonedit, subdomains and apache draget Linux - Networking 1 04-25-2006 07:38 AM
Apache Virtualhosts and subdomains arew264 Linux - Networking 1 01-03-2006 08:53 AM
APACHE and Subdomains basketkase999 Linux - Software 18 05-21-2005 10:38 PM
apache userdir subdomains kodon Linux - Networking 7 08-09-2004 07:16 PM
Apache and Subdomains, Help pzorn Linux - General 2 01-27-2004 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration