httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikunj Virani" <nik...@netsurf.co.in>
Subject Re: [users@httpd] Problems with virtual hosting
Date Thu, 06 Mar 2003 12:35:42 GMT
Hi Krisztian,

Sorry, Had been a bit busy today so could not write to u before.

I did tried putting your config file on my local machine and running with
minor changes (IPs and removing some of the modules i do not have). I have
mailing system running on 8000 port. And it worked fine. There seems to be
no problem with apache configuration that i can see.

Checked your logs and one thing we can be sure of is that requests are being
forwarded to your 7777 port. Can u tell about what type of software is
running on 7777 port. What does it run (CGI, PERL, PHP ?) on.

It could be very difficult to say that apache is sending half the requests
to test.com and others to webmail.

Did u try recompiling apache and again checking ?

Regards,
Nikunj Virani
Senior System Administrator
NCPL
Pune,INdia
Phone: 9822671406
----- Original Message -----
From: "Krisztian Gyoerffy" <krisztian.gyoerffy@selecktra.com>
To: <nikunj@netsurf.co.in>
Cc: <users@httpd.apache.org>
Sent: Wednesday, March 05, 2003 10:03 PM
Subject: RE: [users@httpd] Problems with virtual hosting


Hi Nikunj,

let me explain again what I get wrong (FYI: I just made a little
modification in the config, that now apache writes everything in the same
log files, it is better for analysis):

Abstract from access_log:

a.b.c.d - - [05/Mar/2003:17:13:12 +0100] "GET / HTTP/1.0" 200 374 <--- I
enter webmail.test.com in Internet Explorer and I got an error message HTTP
404 - File not found
a.b.c.d - - [05/Mar/2003:17:13:12 +0100] "GET /Hello.html HTTP/1.0" 404 284
a.b.c.d - - [05/Mar/2003:17:13:12 +0100] "GET /Buttons.html HTTP/1.0" 404
286
a.b.c.d - - [05/Mar/2003:17:13:15 +0100] "GET / HTTP/1.0" 200 1645 <--- here
I pressed the Refresh button for webmail.test.com, and I got part of the
page on www.test.com with some objects missing (see the 404 error message
for hungary.gif)
a.b.c.d - - [05/Mar/2003:17:13:15 +0100] "GET /austria.gif HTTP/1.0" 304 -
a.b.c.d - - [05/Mar/2003:17:13:15 +0100] "GET /spain.gif HTTP/1.0" 304 -
a.b.c.d - - [05/Mar/2003:17:13:16 +0100] "GET /hungary.gif HTTP/1.0" 404 1
96
a.b.c.d - - [05/Mar/2003:17:13:16 +0100] "GET /con1.gif HTTP/1.0" 404 196

And if I repeate to press the Refresh button I get the www.test.com page
again and again with some missing objects randomly, and very rearly I get
again the page with HTTP 404 - File not found.

I checked also the log files of the webmail service and I found a very
interresting message there too:

17:13:16.14 3 SYSTEM Web file '/opt/WebMailAdmin/hungary.gif' does not exist
17:13:16.26 3 SYSTEM Web file '/opt/WebMailAdmin/con1.gif' does not exist

Look at the timestamp! It seems to me, that apache sent the half of the
request to the webmail service and the other half to www.test.com.

Anyway I attached my httpd.conf file.

Please have a look, I am a bit confused, and feel completly lost.


Thanks for your patience and help


Regards

Krisztian


-----Original Message-----
From: Nikunj Virani [mailto:nikunj@netsurf.co.in]
Sent: Mittwoch, 05. März 2003 14:36
To: Krisztian Gyoerffy
Cc: users@httpd.apache.org
Subject: Re: [users@httpd] Problems with virtual hosting


Hi Krisztian,

I did miss your mail.

>>This I also checked before, and I saw that the mod_proxy is not compiled
in, but then I checked in the httpd.conf file and >>there it is loaded as a
module (and now I checked the mod_rewrite too, and it is also there):

>>LoadModule rewrite_module     /usr/lib/apache/mod_rewrite.so.
>>LoadModule proxy_module       /usr/lib/apache/libproxy.so
>>AddModule mod_rewrite.c
>>AddModule mod_proxy.c

>>So they are loaded dynamically if I am right?

Yes you are right they are dynamically loaded.

>>Are the LoadModule and AddModule directives for loading a module
dynamically? Why I need them both to define, and >>why are they different
e.g. for mod_proxy (libproxy.so, mod_proxy.c) while for mod_rewrite just the
extension is different?

>>Now I also tried to include the  "ProxyRequests On" into the config, no
success. There is basically no special error >>message, just my common web
page is displayed, the same like for www.test.com. That's why it seems not
to do anything. >>Or I get part of the start page of the webmail service,
but nothing is working on it, and some objects are incomplete (e.g. >>pics
are not loaded). And if in such case I click on the "Refresh" button in
Internet Explorer I get my common web page is >>displayed, the same like for
www.test.com.

I am not sure in here. What do u get when u type webmail.test.com ? Is it
part of webmail service or www.test.com itself ?

My guess is this is your httpd.conf configs now:

<VirtualHost yourexternalIP:80>
           Servername www.test.com
           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
common
</VirtualHost>

<VirtualHost yourexternalIP:80>
 Servername  webmail.test.com
 RewriteEngine On
 RewriteRule (.*) http://yourExternalIP:3000$1 [P]
</VirtualHost>

Basically i tested a similar configuration locally (almost similar) and it
did work. So my only hunch is mod_proxy is not working as it should.  Or
there is some small problem. Send me your httpd.conf that might help.

>>My log files contain information like this:

>>Error_Log:

>>[Tue Mar  4 13:52:54 2003] [notice] caught SIGTERM, shutting down
>>[Tue Mar  4 13:52:59 2003] [notice] Apache/1.3.19 (Unix)  (SuSE/Linux)
mod_throttle/3.0 mod_layout/1.0 >>mod_fastcgi/2.2.2 configured -- resuming
normal operations
>>[Tue Mar  4 13:52:59 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
>>[Tue Mar  4 16:31:52 2003] [notice] caught SIGTERM, shutting down
>>[Tue Mar  4 16:31:58 2003] [notice] Apache/1.3.19 (Unix)  (SuSE/Linux)
mod_throttle/3.0 mod_layout/1.0 >>mod_fastcgi/2.2.2 configured -- resuming
normal operations
>>[Tue Mar  4 16:31:58 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)

I agree nothing in the error logs.

>>access_log (here you can see the example I described above):

>>a.b.c.d - - [04/Mar/2003:16:32:15 +0100] "GET / HTTP/1.0" 200 2097
>>a.b.c.d - - [04/Mar/2003:16:32:15 +0100] "GET
/DomainFiles/*/SampleLogo.gif HTTP/1.0" 200 6194
>>a.b.c.d - - [04/Mar/2003:16:32:18 +0100] "GET / HTTP/1.0" 200 2097
>>a.b.c.d - - [04/Mar/2003:16:32:18 +0100] "GET /DomainFiles/*/Logo.gif
HTTP/1.0" 200 1877
>>a.b.c.d - - [04/Mar/2003:16:32:20 +0100] "GET /DomainFiles/*/Logo.gif
HTTP/1.0" 200 1877
>>a.b.c.d - - [04/Mar/2003:16:32:21 +0100] "GET /con1.gif HTTP/1.0" 404 240
<--- here I got the start page of webmail service, and this gif was not
loaded
>>a.b.c.d - - [04/Mar/2003:16:32:24 +0100] "GET /spain.gif HTTP/1.0" 404 240
<--- here I pressed the Refresh button, and I got my common web page from
www.test.com
>>a.b.c.d - - [04/Mar/2003:16:32:24 +0100] "GET /hungary.gif HTTP/1.0" 404
240
>>a.b.c.d - - [04/Mar/2003:16:32:25 +0100] "GET /hungary.gif HTTP/1.0" 404
240
>>a.b.c.d - - [04/Mar/2003:16:32:25 +0100] "GET /spain.gif HTTP/1.0" 404 240
>>a.b.c.d - - [04/Mar/2003:16:32:25 +0100] "GET /hungary.gif HTTP/1.0" 404
240
>>a.b.c.d - - [04/Mar/2003:16:32:38 +0100] "GET /con1.gif HTTP/1.0" 404 240
>>a.b.c.d - - [04/Mar/2003:16:32:38 +0100] "GET /hungary.gif HTTP/1.0" 404
240
>>a.b.c.d - - [04/Mar/2003:16:32:39 +0100] "GET /hungary.gif HTTP/1.0" 404
240

No html or php or cgi request or did u stip them ?
Regards,
Nikunj




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message