httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krisztian Gyoerffy" <>
Subject RE: [users@httpd] Problems with virtual hosting
Date Mon, 03 Mar 2003 18:31:06 GMT
Hi Owen!

Thanks for your quick answer and for your feedback regarding the completness of my report.
I try to do my best. :-)

So now the answers to your questions:

- yes, the two names and the both points to the external IP

- the webmail service listens basically on both IP address see the output of netstat below:

# netstat -an | grep 3000
tcp        0      0  *               LISTEN

Unfortunatelly the webmail service is a third party program, so I don't want to go deeply
into their code, but it has a configuration interface, with which you can set up the port
listening on to any desired value. So I don't assume, it is hard coded somwhere in the webmail

I corrected the parameter ServerName, and now everywhere in the virtual host sections the
IP address is the external one. No change on behaviour.

I set the UseCanonicalName to Off parameter, but it didn't help.

I still wonder, why I get sometimes my common web page, when I try to connect to

Any other idea?


-----Original Message-----
From: Boyle Owen []
Sent: Montag, 03. März 2003 16:36
Subject: RE: [users@httpd] Problems with virtual hosting

>-----Original Message-----
>From: Krisztian Gyoerffy []
>Hi Apache users,
>first of all I would like to say, I made all the steps I 
>could do to figure out the problem by myself. So I tried 
>to find an answer by searching the Web, tried to find an 
>answer by reading the manual, tried to find an answer by 
>reading the FAQ, and beside of that I am playing around 
>with this issue since 2 weeks.

First of all, let me congratulate you on perhaps the most complete and
well laid-out problem description to appear on this mailing list in many
months! It is a pleasure to find all relevant information in logical
order in the first posting and this should be an example to all those -
"it ain't working!" posters.

Now, how about your problem... :-) (See notes below)

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

>So let me explain what is the problem exactly:
>I have a Linux box with SuSE 7.1 and apache 1.3.19 running 
>on it, installed from a SuSE rpm package.The web server is 
>listening on the standard HTTP port (80). Beside of this 
>web server I have an extra standalone webmail service 
>listening on port 3000.
>The machine is a multihomed one, doing maquerading, 
>connected with one IP to the Internet and with an other 
>one to my internal network.
>I decided to set up an alias for the webmail service, that 
>it is reachable via this, and I don't need to define 
>everytime the port after the address (instead 
> having So I set up 
>this alias in the DNS, which also points to the same 
>external IP like
>After this I configured the virtual hosting section in 
>httpd.conf (and I suppose, the problem might be here), 
>which looks now like this:
>NameVirtualHost *
><VirtualHost *>
>           Servername
>           DocumentRoot 
>      "/usr/local/httpd/test_home/docs"
>           ErrorLog 
>          /usr/local/httpd/test_home/ErrorLog/error_log
>	  CustomLog 
>         /usr/local/httpd/test_home/CustomLog/access_log 
><VirtualHost *>
>           Servername    
>           ProxyPass               / http://a.b.c.d:3000/
>           ProxyPassReverse        / http://a.b.c.d:3000/

- So and both point to your public IP
address - Double-check this?
- On which interface is the webmail service listening on port 3000? - I
assume on the internet IP address?

(BTW, watch the directive spelling: I always keep correct case
(ServerName) even though it doesn't really matter.)

>The phenomen is that eighter my common web page of 
> will be displayed even if I try to connect to 
> or apache connects me to the webmail 
>service, but I get various errors on the page (e.g. couple 
>of pics cannot be displayed, cannot found, etc) and 
>nothing is working there. If I connect to the port of the 
>webmail service directly like it works 
>I tried to replace the * with the external IP address, and 
>I also tried to define a.b.c.d as both the internal and 
>external address of the machine with no success.

- "*" is fine, but if you want, replace it with external IP.
- a.b.c.d should equal external IP.

>My question is, how is it possible to configure apache so, 
>that if somebody connects to, he will reach 
>my common web page, and if he connects to 
>(so to the alias for the webmail service), he will be 
>forwarded to the webmail service?

There's no obvious error in the config, but I wonder about the
UseCanonicalName setting... You might try "UseCanonicalName off" just
after the NameVirtualHost directive.

Also, check the HTML on the webmail pages. Make sure all links to IMGs
etc are relative (e.g. <img src="/images/pic.gif"> and not absolute
(like, <img src="http://abcd:3000/images/pic.gif">).

>Thanks for your help in advance
>PS: if you need more details about my config, please ask 
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message