Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 2.0.55 HTTP Status 302
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
the_sphynx
Apprentice
Apprentice


Joined: 19 May 2004
Posts: 156
Location: Thornton, CO

PostPosted: Fri Apr 07, 2006 8:16 pm    Post subject: Apache 2.0.55 HTTP Status 302 Reply with quote

I have a handful of vitual hosts in my 00_default_vhost.conf file and all of them are working except one. Here is my vhosts.conf file:
Code:

<VirtualHost 10.0.0.1>
        ServerName graphing.mydomain.com
        DocumentRoot /var/www/mydomain.com/cacti-0.8.6h
</VirtualHost>
<VirtualHost 10.0.0.1>
        ServerName phpmyadmin.mydomain.com
        DocumentRoot /var/www/mydomain.com/phpmyadmin
        ErrorLog /var/log/apache2/phpmyadmin.mydomain.com-error_log
</VirtualHost>
<VirtualHost 10.0.0.1>
        ServerName syslog.mydomain.com
        DocumentRoot /var/www/mydomain.com/syslog/web
</VirtualHost>
<VirtualHost 10.0.0.1>
        ServerName inventory.mydomain.com
        DocumentRoot /var/www/mydomain.com/inventory
</VirtualHost>
<VirtualHost 10.0.0.1>
        ServerName ipaddresses.mydomain.com
        DocumentRoot /var/www/mydomain.com/ipaddresses
        DirectoryIndex 64_Subnet.xml
</VirtualHost>

The one that isn't working is the one named inventory.mydomain.com.
The clients send the request and the server responds with a redirect saying that it is actually located at https://inventory.mydomain.com/
This isn't true though. I even manually put a redirect in my vhosts.conf to point it back to http:// and it then just sits there in a loop when a client requests the URL.
If anyone knows why this is happening then please let me know.
_________________
Folding@Home User 285941
Back to top
View user's profile Send private message
badchien
Guru
Guru


Joined: 16 Feb 2004
Posts: 415
Location: doghouse

PostPosted: Fri Apr 07, 2006 10:24 pm    Post subject: Reply with quote

Did you previously have a redirect in there? Have you restarted apache to make sure it is using your current config?
Code:
/etc/init.d/apache restart

If that doesn't do it, are you sure you don't have a redirect defined elsewhere?
You might just check...
Code:
grep -ir "redirect " /etc/apache2/
Back to top
View user's profile Send private message
the_sphynx
Apprentice
Apprentice


Joined: 19 May 2004
Posts: 156
Location: Thornton, CO

PostPosted: Fri Apr 07, 2006 11:23 pm    Post subject: Reply with quote

I have had no previous redirects for that ever. I grep'd the directory and found nothing that would pertain to this issue. I have restarted apache like a hundred times and I have even recompiled it once as well. This is getting to be a real annoying problem as I have been troubleshooting this for two days straight. I even whipped out ethereal to verify that it is in fact the server redirecting the site...
_________________
Folding@Home User 285941
Back to top
View user's profile Send private message
badchien
Guru
Guru


Joined: 16 Feb 2004
Posts: 415
Location: doghouse

PostPosted: Sat Apr 08, 2006 12:44 am    Post subject: Reply with quote

I would stop apache then try http://inventory.mydomain.com/ again in your browser. Make sure you get unable to connect or whatever. Just to be sure the response is coming from where you think it is.

If that checks out, I would telnet to the server on port 80, just to confirm you get the same response the browser is getting.
Code:
GET / HTTP/1.1
host: inventory.mydomain.com



I know you said you checked the traffic passed with ethereal but unless you have better ideas, that is what I would try next.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum