all websites are opening the /home directory and users can see all the virtualservers’ folders
domains (virtual_servers) should open /home/virtual_server_user/public_html/ instead
Webmin version 1.795 Virtualmin version 5.03.gpl
Any idea on how I could tackle this?
After un update, perl stopped working. then fixing perl, I ended up updating (an also reinstalling) postfix, and apache and MySQL. During the process, Virtualmin made me install lots of modules. So I don’t really know what I changed.
Perhaps someone has experience something like this before?
Hmm, I’m not completely certain I understand what is occurring there.
Can you share, say, a screenshot of an example that shows what happens when browsing to a directory you have there? Or perhaps share an example domain that’s showing this behavior?
My best guess is that there’s a misconfiguration in the Apache config, that is redirecting traffic to the wrong place.
It’s possible that there is a VirtualHost that is using /home as it’s DocumentRoot, rather than the correct location.
What you may want to do, is first verify what domain is actually responding to that request. Check in $HOME/logs/access_log, and make sure that there is a corresponding log entry in there.
Once you’ve verified what domain is responding to the request, we’ll then need to review the Apache config for that domain. I’m particularly interested in seeing the DocumentRoot, but any of the Apache config could be to blame.
Also, what distro/version is it that you’re using?
Hi,
I am using Debian 8.4 jessie
Webmin version 1.795 Virtualmin version 5.03.gpl
Yep. It was using /home as document root in apache webserver config…
THis is what showed in Webmin apache config page, for the virtualserver:
Virtual Server Any 80 Automatic /home
Somehow it had lost the virtualmin servers that were there.
Now, to test, I created manually a new virtual server with:
Virtual Server 178.33.0.64 80 adss.ch /home/adss/public_html
But now when I try to reach the domain www.adss.ch, I receive a 403 forbidden page.
The $HOME/logs/access_log (I understood that this goes to, e.g. /home/adss//logs (adss is a virtual server)
only has logs before the problem started (22nd of May).
To test, I tried creating a new virtual server for another domain I had and its logs come empty (and I also get the 403 forbidden page)
Looks like the domain is not reaching the virtual server.
HI again.
I just checked this thread, https://www.virtualmin.com/comment/757170#comment-757170
actually all troubles started when I upgraded webmin / virtualmin and perl stopped working (could not create new Virtual Servers. I reinstaed perl and then Virtualmin asked to reinstall lots of stuff (apache modules, etc.9 That was how things started.
To sort out problems I even tested (after reading your comment) creating there a index.html “hello world” file.
And it retrieves me the forbidden page.
logs in the $HOME/logs/access_log (I understood that this goes to, e.g. /home/[site]/logs
only have logs before the problem started (22nd of May).
Is there a way to know where the http requests are hitting? because I think they are not arriving to the virtual server.
Hi.
I checked the link you sent. thanks.
I feel I am to go in the right direction: the websites don’t show there in the enabled websites.
Now I’ll have to figure out how I will be able to make them show :D.
If I don’t get it, I’ll ping here.
But if you have a quick fix, fill free to tell me
Thanks
Hi again.
The sites do not how in the sites enabled links. They are only on the sites available.
I created a link for one of the missing sites in the sites enabled. But then apache does not restart: Job for apache2.service failed. See ‘systemctl status apache2.service’ and ‘journalctl -xn’ for details.
I already searched for that error message but still digging…
I’ll keep you posted, i the case you have a magic shortcut for the solution.
Is there a way to “recreate” a webserver without deleting the info that is already there?
Becaasue it seems to work with a test site I created after checking your last message
ok. Looks like it is solved.
So, for other guys that might come here:
Issue was -
1 - The links to the virtualservers had disappeared from /etc/apache2/sites-enabled.
2 - I understood that to create the links the better precedure was to use Apache webserver configuration (on webmin) > create virtualhost
3 - I had to remove some lines from the [server].config file. and here I need your opinion to know if this might create me any problems:
php_admin_value engine Off
php_value memory_limit 32M