I guess I have a problem in my apache2 config

5 posts / 0 new
Last post
#1 Mon, 06/18/2007 - 09:50
julien.pham

I guess I have a problem in my apache2 config

Hi,

I have a serious problem... I have a working mail server, but the web server does not work at all... for example, I put an index.php or index.html file in the public_html subdirectory of my website directory, and nothing happened... I mean, when I then go to http://www.mywebsite.com, nothing... it says there is no website there...

Any idea?

Thanks

Mon, 06/18/2007 - 17:52
Joe
Joe's picture

Hey Julien,

Possibly a problem with the NameVirtualHost and VirtualHost sections. The IP for both has to match, or the "default" site will be served for everything.

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:03
julien.pham

But that is the problem. Even the default server do not work. No server works.

And btw when I keep the virtualmin config as it is, when i restart apache I have the error message :

"* Apache2 has detected a syntax error in your configuration files:
/etc/init.d/apache2: line 23: 3255 Erreur de segmentation ${APACHE2} ${APACHE2_OPTS} -t"

I look at the config file, and it shows :
"VirtualHost xxx.xxx.xxx.xxx:80>" in the first line.

If I replace it by "<VirtualHost>" without the IP, I can restart apache without error but... I can't access my website either.

Any idea?

Thanks

Tue, 06/19/2007 - 09:38
BossHog

Hi Julien,
if that error message is copy and pasted, then it looks like the "<" symbol is missing in the VirtualHost line.

Good luck.
Joe

Tue, 06/19/2007 - 09:44
julien.pham

I have found the problem, I emerged my apache again and now it works...

Topic locked