AW: Problem with Apache in Jail

Scheithauer, Lars (FH) Lars.Scheithauer at fh-heidelberg.de
Thu Nov 19 14:04:13 UTC 2009


On a follow-up:
I just recognized, that I may access the vhost correctly from the server itself via lynx, but I am still unable to access any vhost from the outside (I can access the default by ip, though).




-----Ursprüngliche Nachricht-----
Von: owner-freebsd-jail at freebsd.org [mailto:owner-freebsd-jail at freebsd.org] Im Auftrag von Scheithauer, Lars (FH)
Gesendet: Mittwoch, 18. November 2009 16:11
An: Miroslav Lachman
Cc: freebsd-jail at freebsd.org
Betreff: AW: Problem with Apache in Jail

Hi Miroslav,

the system is a FreeBSD 8.0-rc3 with apache22.

nslookup is working fine - I did not enter the vhosts name into the /etc/hosts before, but even adding it doesn't change the problem.

Any other ideas I might check out?

Best Regards,
Lars



-----Ursprüngliche Nachricht-----
Von: Miroslav Lachman [mailto:000.fbsd at quip.cz] 
Gesendet: Mittwoch, 18. November 2009 15:44
An: Scheithauer, Lars (FH)
Cc: freebsd-jail at freebsd.org
Betreff: Re: Problem with Apache in Jail

Scheithauer, Lars (FH) wrote:
> Hi everyone,
>
> I've started to install an apache22 in a freebsd-jail and have a
> problem. The jail has a public ip address, so from what I know, I
> wouldn't have to forward any packages to it. I can reach the apache22
> server by ip-address, but not by its DNS - the connection gets
> "disrupted". I can successfully nslookup the DNS and if I watch the
> traffic of the browser via wireshark, I see that it sends packages to
> the server, but the server doesn't send any packages back. I also do not
> find any traces of the connection attempt in the apache-logs.
>
> The config-files of the apache are correct and read (tested by entering
> some false configs and the server refused to start afterwards - and as
> said I'm able to access it by its ip).
>
>
>
> Now, is there any way that this could be caused by the jail?

You did not post what version and architecture you are using...
But I am runing several jails with Apache or Lighttpd without any issues 
(on 6.3 i386 and 7.2 i386 + amd64).
So I expect some misconfiguration on your side.

Are you sure you have correct DNS entries pointing to right IP and you 
have working resolv.conf inside jail? What about /etc/hosts?

Miroslav Lachman
_______________________________________________
freebsd-jail at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscribe at freebsd.org"


More information about the freebsd-jail mailing list