Website not displaying. Default Page

I’m having some trouble with my Virtualmin server. I have my DNS hosted externally and its pointed to the server. The domain links to the server since it’s showing a : It Works! page (default page), but when I put content into the public_html folder, there it is still displaying this page. I’m not sure what the problem is.

Howdy,

Is your server behind a NAT router?

Also, if you go into System Settings -> Re-Check Config, does it notice any problems?

-Eric

Yes i’m behind a NAT Router. No errors on Re-Check Config.

The site is accessible via the web via the domain but it seems to be stuck on the default page.

it may go to /var/www/html instead of /home/domein/public_html
is suexec running and pointing to /home ?

How would I check this? I’m not too familiar with Ubuntu with Virtualmin. I use to use CentOS with CPanel

you can run: suexec -V
and it will show you.

if you are on LAN make sure you have set the internal IP for apache… Virtualmin - System Settings - Virtualmin Configuration - Network Settings - Default virtual server IP address

It shows up that the command isn’t found. I’m running Ubuntu 12.04.

The suexec is set to /home. Doesn’t seem to be the issue. the IP is set properly. It doesn’t seem to let me off the default test page and it won’t read any other files in the public_html folder. It says file not found even though it’s in there.

The suexec is set to /home. Doesn’t seem to be the issue. the IP is set properly. It doesn’t seem to let me off the default test page and it won’t read any other files in the public_html folder. It says file not found even though it’s in there.

On Ubuntu, the virtualhost configuration is in /etc/apache2/sites-enabled/
In there you would see a 000-default and 1 file for your domain.

What you can try is to:
Make sure your domain is read before the 000-default by renaming the 2 files or
look inside that 000-default file and change

[code]
ServerAdmin webmaster@localhost

DocumentRoot /home/yourdomain/public_html

Options FollowSymLinks
AllowOverride None

<Directory /home/yourdomain/public_html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

[/code]

There should be a way in virtualmin to set your domain as the default site to serve pages, but i cant remember where that is right now.
you may also want to read up on: http://www.virtualmin.com/documentation/web/troubleshooting

Kindly assist, how can I make contents of my site at home/mydomain/public_HTML be displayed instead of those at var/www/HTML?

I have the same problem.
I have a one drfarah.com.br domain and put an index.html in the root which is not displayed … it goes to /var/www/html

how can I make contents of my site at home/mydomain/public_HTML be displayed instead of those at var/www/HTML?

have a look here:
https://www.virtualmin.com/node/42066

If you use a domain for virtualmin setup AND use it for a virtual server as well, this might happen.

Best