Website not displaying. Default Page

14 posts / 0 new
Last post
#1 Tue, 05/29/2012 - 03:17
adrianwa

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.

Tue, 05/29/2012 - 07:11
andreychek

Howdy,

Is your server behind a NAT router?

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

-Eric

Tue, 05/29/2012 - 09:48
adrianwa

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

Tue, 05/29/2012 - 10:38
adrianwa

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

Tue, 05/29/2012 - 11:18
ronald
ronald's picture

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

Tue, 05/29/2012 - 14:25
adrianwa

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

Tue, 05/29/2012 - 16:56
ronald
ronald's picture

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

Tue, 05/29/2012 - 22:31
adrianwa

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

Tue, 05/29/2012 - 23:59
adrianwa

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.

Tue, 05/29/2012 - 23:59
adrianwa

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.

Wed, 05/30/2012 - 02:00
ronald
ronald's picture

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

<VirtualHost your.internal.ip:80>
    ServerAdmin webmaster@localhost
 
 DocumentRoot /home/yourdomain/public_html
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /home/yourdomain/public_html/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

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

Sun, 05/15/2016 - 08:22
Paul Musau

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

Fri, 09/16/2016 - 14:47
vtfarah
vtfarah's picture

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?

Wed, 09/21/2016 - 02:23
just_me

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

Topic locked