These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for I guess I have a problem in my apache2 config on the new forum.
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
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!
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
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
I have found the problem, I emerged my apache again and now it works...