Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 rewrites hostname in specific circumstances-Resolved
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
ryouga42
n00b
n00b


Joined: 21 Oct 2004
Posts: 19

PostPosted: Wed Oct 27, 2004 1:25 pm    Post subject: Apache2 rewrites hostname in specific circumstances-Resolved Reply with quote

I'm trying to set up php-syslog-ng on my server. It works fine, I've got everything set up, but for some reason when I go to "http://servername/syslog" it redirects me to "http://FQDN/syslog/" which ends up going through our proxy - which for some twisted reason actually returns the correct page.

But I don't WANT it to go through the proxy; it shouldn't have to, it's one extra hop that isn't required. If I use /syslog/ with the trailing slash it works fine.

Any ideas? It's the stock configuration with -D SSL PHP4 - I've looked through the .php files and didn't see any redirects. Again, ONLY on /syslog - /syslog/ works fine.


Last edited by ryouga42 on Wed Oct 27, 2004 1:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Oct 27, 2004 1:26 pm    Post subject: Reply with quote

Set
Code:
UseCanonicalName Off

in apache's config.

man apache on why.

Do you have decent DNS for running the webserver ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
ryouga42
n00b
n00b


Joined: 21 Oct 2004
Posts: 19

PostPosted: Wed Oct 27, 2004 1:30 pm    Post subject: Reply with quote

adaptr wrote:
Set
Code:
UseCanonicalName Off

in apache's config.

man apache on why.

Do you have decent DNS for running the webserver ?


Ah, thanks.

Yeah, we have reverse and forward lookup entries for the server.

(If that's not what you meant, I'm not sure what you mean by "decent DNS"...)
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Oct 27, 2004 1:36 pm    Post subject: Reply with quote

What I mean is simply: does host web.server.name report the same name and address as the actual hostname, and the hostname -f command does ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
ryouga42
n00b
n00b


Joined: 21 Oct 2004
Posts: 19

PostPosted: Wed Oct 27, 2004 1:46 pm    Post subject: Reply with quote

adaptr wrote:
What I mean is simply: does host web.server.name report the same name and address as the actual hostname, and the hostname -f command does ?

Code:

avomrtg ~ # hostname -f
avomrtg.aviano.af.mil
avomrtg ~ # host avomrtg
avomrtg.aviano.af.mil has address 131.48.100.98
avomrtg ~ #


It's all perfect, just that if our browsers see an FQDN they assume outside network and so go through the proxy.

Thanks for the help! :)
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