httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krisztian Gyoerffy" <krisztian.gyoer...@selecktra.com>
Subject RE: [users@httpd] Problems with virtual hosting
Date Wed, 19 Mar 2003 18:25:37 GMT
Hi Nikunj,


thanks for your answer. Now I have a good news for us. Yesterday I
finally complied the Apache version 1.3.27 on my machine, I put the
entries into the config file for virtual hosting, and it was working.
And it was working with both ProxyPass and RewriteRule [P].

I think the rpm package from SuSE was this time not the real one. I
don't know why, but I have heard from some other users from SuSE that
they also experienced sometimes such strange things from other programs,
which were delivered as SuSE rpm packages.


Anyway thanks for your support


Krisztian

-----Original Message-----
From: Nikunj Virani [mailto:nikunj@netsurf.co.in]
Sent: Mittwoch, 19. März 2003 09:23
To: krisztian.gyoerffy@selecktra.com; users@httpd.apache.org
Subject: Re: [users@httpd] Problems with virtual hosting


Hi Kisztian,

I prefer DJBDns to Bind any time. Do check out the DJB's manual and "The
importance of separating DNS caches from DNS servers".

Following Should work for Bind, or you can also have A record:
other.test.com.     IN    CNAME    www.test.com.

I use:
other.test.com  IN      A       a.b.c.d

Have a look at:
http://cr.yp.to/djbdns.html
http://cr.yp.to/djbdns/separation.html


Regards,
Nikunj Virani
----- Original Message -----
From: "Furesz Peter" <the_coder@freemail.hu>
To: <users@httpd.apache.org>
Sent: Tuesday, March 18, 2003 5:17 PM
Subject: Re: [users@httpd] Problems with virtual hosting


> It is no matter, but you have to have a point (.) after www.test.com.
like
> this.
>
> www.test.com.    IN    A    a.b.c.d
> other.test.com.     IN    CNAME    www.test.com.
>
>
> ----- Original Message -----
> From: "Krisztian Gyoerffy" <krisztian.gyoerffy@selecktra.com>
> To: "Nikunj Virani" <nikunj@netsurf.co.in>
> Cc: <users@httpd.apache.org>
> Sent: Tuesday, March 18, 2003 10:36 AM
> Subject: RE: [users@httpd] Problems with virtual hosting
>
>
> Hi Nikunj,
>
>
> haven't spoken for a long time. Sorry for that, but I was sick last
week,
> and actually I am still not so well. Anyway I was thinking of one more
> thing.
>
> If in my DNS records there is an A record for www.test.com like this:
>
> www.test.com                        IN        A      a.b.c.d
>
> then for webmail.test.com I need also an A record or a CNAME record?
Or it
> is no matter?
>
> webmail.test.com                              CNAME  www.test.com
>
>
> Thanks for your help in advance
>
>
> Krisztian
>
> -----Original Message-----
> From: Nikunj Virani [mailto:nikunj@netsurf.co.in]
> Sent: Donnerstag, 06. März 2003 14:02
> To: Krisztian Gyoerffy
> Subject: Re: [users@httpd] Problems with virtual hosting
>
>
> Sorry, I did mean your port 3000.
>
> >So as far as I understood you question well, you want me to open this
port,
> + give you the real IP + real webmail alias, that >you can set up in
your
> apache instance a virtual host clausel for my webmail service to test
if
it
> is working from your side?
> Yes
>
> Regards,
> Nikunj
>
>
>
> ----- Original Message -----
> From: "Krisztian Gyoerffy" <krisztian.gyoerffy@selecktra.com>
> To: "Nikunj Virani" <nikunj@netsurf.co.in>
> Sent: Thursday, March 06, 2003 6:25 PM
> Subject: RE: [users@httpd] Problems with virtual hosting
>
>
> Hi,
>
> just seen your 2nd email.
>
> So there is nothing running on 7777.
>
> I don't have open the port for the webmail client to the public IP in
my
> firewall config.
>
> So as far as I understood you question well, you want me to open this
port,
> + give you the real IP + real webmail alias, that you can set up in
your
> apache instance a virtual host clausel for my webmail service to test
if
it
> is working from your side?
>
> Krisztian
>
> -----Original Message-----
> From: Nikunj Virani [mailto:nikunj@netsurf.co.in]
> Sent: Donnerstag, 06. März 2003 13:46
> To: Krisztian Gyoerffy
> Subject: Re: [users@httpd] Problems with virtual hosting
>
>
> Yeah just mailed you. Seems its not a apache configuration problem but
might
> be "apache problem". Can u send me some information about what is ur
mail
> client running on 7777 port. if its in external IP. Can u provide  the
> public ip so that i can try proxying it from my local ip ?
>
> Including mail sent at users@.....
>
>
> 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>
> Sent: Thursday, March 06, 2003 5:59 PM
> Subject: FW: [users@httpd] Problems with virtual hosting
>
>
> Hi Nikunj,
>
> do you have maybe any news for me?
>
>
> Thanks
>
> Krisztian
>
> -----Original Message-----
> From: Krisztian Gyoerffy [mailto:krisztian.gyoerffy@selecktra.com]
> Sent: Mittwoch, 05. März 2003 17:33
> To: nikunj@netsurf.co.in
> Cc: users@httpd.apache.org
> 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
>
>
>



---------------------------------------------------------------------
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