View previous topic :: View next topic |
Author |
Message |
ryouga42 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Oct 2004 Posts: 19
|
Posted: Wed Oct 27, 2004 1:25 pm Post subject: Apache2 rewrites hostname in specific circumstances-Resolved |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Oct 27, 2004 1:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ryouga42 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Oct 2004 Posts: 19
|
Posted: Wed Oct 27, 2004 1:30 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Oct 27, 2004 1:36 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ryouga42 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Oct 2004 Posts: 19
|
Posted: Wed Oct 27, 2004 1:46 pm Post subject: |
|
|
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! ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|