Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Odd Problem |
|
Author |
|
Sathane
Joined: 23 Sep 2014 Posts: 2 Location: Canada
|
Posted: Thu 01 Jan '15 19:48 Post subject: Odd Problem |
|
|
This one is really stumping me.
Everything worked fine, as it should, up until this morning. There have been no changes to DNS and no updates done to the server recently.
Apache2 config had a new VirtualHost added a few days ago but that is working fine.
This webserver also run a firewall. Internal to the network is a mail server so when a request comes in for any of the mail. subdomains, it forwards the connection to the internal mail server using:
Code: |
ProxyPreserveHost On
ProxyPass / http://192.168.xxx.xx/
ProxyPassReverse / http://192.168.xxx.xx/
ServerName mail.nottherealdomain.com
|
There are many mail. subdomains that are forwarded in this way but only one has stopped working. It instead accessed the web root of the firewall web server instead of forwarding internally like all the others.
I've even tried changing some thing around - putting it in it's own VirtualHost section, removing it completely for the ProxyPass forward and just rewriting the URL to https (https port is forwarded to the internal mail server via shorewall).
Apache seems to be ignoring everything to do with that particular subdomain but handles everything else exactly as it should.
Any ideas? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 02 Jan '15 0:25 Post subject: |
|
|
What is in your error log about that? Are you sure the vhost name matches?
I guess that the default vhost config is used. |
|
Back to top |
|
Sathane
Joined: 23 Sep 2014 Posts: 2 Location: Canada
|
Posted: Fri 02 Jan '15 4:42 Post subject: |
|
|
No errors at all.
When I access a URL in the same ProxyPass VHost section, there is nothing in the logs at all, as expected, because it hands off the traffic to the internal mail server. I can see the access in the logs on that server. When trying to access this particular URL, I can see the access in the main server. This shouldn't happen as it's supposed to be handing off the traffic just like the other subdomains.
The page returned in the browser is the page I have set on my server that is served if someone accesses the web server via IP directly or uses a hostname that isn't configured in Apache to be redirected to a site directory. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 06 Jan '15 19:12 Post subject: |
|
|
Sathane wrote: |
The page returned in the browser is the page I have set on my server that is served if someone accesses the web server via IP directly or uses a hostname that isn't configured in Apache to be redirected to a site directory. |
Add there a script that displays the requested host name and see if that matches with the name in the config. |
|
Back to top |
|
|
|
|
|
|