Virtualmin won't show any pages at all

21 posts / 0 new
Last post
#1 Sat, 05/07/2011 - 17:46
Morpheus

Virtualmin won't show any pages at all

Well i'm gonna make this thread a little bigger than usual.. gotta explain everything before so you guys can understand my problem..

How's your server setup?

The server is running behind NAT inside a network, this nat is actually the pfsense firewall.. This server is running on windows.. i'm using a centOS 5.6 vps to run virtualmin and the network interface is bridged.. so it's the same network as server..

I done all the config necessary to run the system.. forwarded a couple of ports in the firewall, here they are:

TCP: 20,21,22,25,53,80,110,143,443,995,3306,8080,10000,465 UPD: 53

and the range from 5000-5100 for passive FTPD..

Those are ONLY for that virtualmin server, i'm using a couple more ports in the windows server but has nothing to do with virtualmin.. ports such as 3389 for RDP etc..

I only have ONE ip adress, static of course.

Now.. i got the DNS server to work, but it seams that only one of my domains are actually working (and no it's not the server hostname), i CAN send and receive emails trough that domain.. i sent a couple to my hotmail account.. replied and it works just fine.. i CAN access that virtual server folder through ftp without any issues.. if i try to browse with the IP adress i get a Index of/ empty page.. if i try to browse the domain it's the same empty page even though i actually have a website inside public_html it just looks like there's nothing in it..

I saw recently a tutorial in youtube.. indian guy crazy accent.. haha.. i done just as he did.. but the default virtualmin page never showed up here..

Now you get the picture..

Things that you don't have to tell me:

  • NAT is not good, you should use your server behind a nat:

I know a lot about nat.. i know the problem.. but all i need is to forward the ports and not using a firewall and nat is not an option for me.. so please don't tell me not to use nat.. instead if there's any port missing there.. i'll forward it..

  • Why are you running in a windows server? and why run the virtualmin in a vps?

I use that server for a lot of stuff.. and i'm just testing for now.. once it's finished i'll setup a dedicaded server just for hosting purposes..

  • Why are you hosting your own DNS? you can use a free service for that..

I'm not going to host a single website.. more likely 2000 instead.. so i expect in the future to buy the pro version of virtualmin.. just need to get everything working properly.. oh and something you might be thinking.. about the DNS server i plan to use separete servers and networks to host those DNS servers.. if there's a nice guide for that i'd like to see it.. but i don't know if i can do that.. i never done this stuff before.. i used cpanel and always as a client not the hoster..

Now.. i need to think about that email server too.. how secured it is.. the dns server i think i could use another server (that one could be a regular vps with 2 ip adresses or 2 dedicated servers with distinct networks and locations for redundancy.. as i said i could use some help here..

It's hard for someone like me to get everything working.. there's not much people to help out there and all i've done so far i did by myself.. looking for tutorials and all that stuff..

I was looking for a free alternative to cpanel, for 2 reasons.. it's too expensive and it doesn't support NAT, oh and one more reason.. i don't like being monopolized by a company so i don't plan to use cpanel anymore.. and as i said before as soon as i can see that virtualmin is what i need.. i'm gonna look forward to the pro version when i start to host a lot of domains.. for now let's just keep it as free as possible..

Thank you in advance and hope i can get this stuff to work :/

Sat, 05/07/2011 - 18:27
andreychek

Howdy,

Hmm, we'll need some additional info on the actual problem you're having.

Where exactly are you seeing trouble -- just while accessing Virtualmin, or also when accessing the various websites on your server? Do you get any errors? Does it just hang?

Also, in case it's a DNS issue -- you may want to try entering your domain name over at intodns.com to get a DNS report, it would tell you if there's any sort of DNS problem related to your site.

-Eric

Sat, 05/07/2011 - 19:46 (Reply to #2)
Morpheus

Eric as i said.. it's a empty page.. Index of/ ... Like there's nothng in the folder to show.. weird.. Maybe there's something wrong with the path, it's not displaying what it should be..

I'll check if there's anything wrong with my dns..

Sat, 05/07/2011 - 19:53
andreychek

Oh I see, I missed where you had said that.

It's possible Apache is confused about what site to be serving (which can happen on NAT).

If you go to System Settings -> Re-Check Config, do you see any errors or warnings? It's able to detect some of the possible NAT issues that can arise.

-Eric

Sat, 05/07/2011 - 20:08 (Reply to #4)
Morpheus

Hey, frist of all thanks for all the help so far.. sorry for not saying that in the frist place :X

Here it is:

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

BIND DNS server is installed, and the system is configured to use it. Mail server Postfix is installed and configured. Apache is installed. Webalizer is installed. Apache is configured to host SSL websites. MySQL is installed and running. PostgreSQL is installed and running. ProFTPd is installed. Logrotate is installed. SpamAssassin and Procmail are installed and configured for use. ClamAV is installed and assumed to be running. Plugin DAV Login is installed OK. Plugin AWstats reporting is installed OK. Plugin Mailman is installed OK. Plugin Protected web directories is installed OK. Using network interface eth0 for virtual IPs. IPv6 addresses are available, using interface eth0. Default IP address for virtual servers is xxx.xxx.xxx.xxx (External IP) External IP address for DNS records is set to xxx.xxx.xxx.xxx (External IP), which matches the detected external address. Both user and group quotas are enabled for home and email directories. All commands needed to create and restore backups are installed. The selected package management and update systems are installed OK.

.. your system is ready for use by Virtualmin.

Sat, 05/07/2011 - 20:22
andreychek

Howdy,

Yeah, all that looks good.

As far as your uploaded files go -- were those all uploaded into the public_html folder? If they aren't in the public_html folder, that could explain what you're seeing.

-Eric

Sun, 05/08/2011 - 12:24 (Reply to #6)
Morpheus

No.. they really ARE in the public_html foder.. i'm 112% sure of that.. but the domain still responding with a blank (infex of/) page.. like there's nothing there.. i'm really confused man.. it should be working..

About the DNS any idead how i could run my slave in another server?

Sun, 05/08/2011 - 12:36
andreychek

Howdy,

they really ARE in the public_html foder.. i'm 112% sure of that

Okay, great, just wanted to be sure!

One thing you may want to check is the "Wrong site shows up" section of this document, it goes over some common causes of what you're seeing:

http://www.virtualmin.com/documentation/web/troubleshooting

About the DNS any idead how i could run my slave in another server?

Well, let's try and solve one problem at a time :-)

You can see details on setting up a slave dns server here at the following URL, but if you have additional questions regarding it, I'd suggest starting up a new thread to go over that. Plus, you may want to hold off on this until after you get your websites working as expected. But, those details are here:

http://www.virtualmin.com/documentation/dns/slave-configuration

Sun, 05/08/2011 - 17:17 (Reply to #8)
Morpheus

thanks man --

I'll check those docs.. see if that's the problem.. sorry i'm afraid you may not be here for too long.. so i'm trying to get all the answers at once.. i'm really sorry about that..and don't mind my spelling i type fast like crazy.. and can't edit posts :/

just in case you 'disappear' morpheus.dgt@hotmail.com

Thanks xD

Sun, 05/08/2011 - 17:55
andreychek

There's lots of folks who read the forums regularly, myself included... but if you stuff a whole bunch of tough questions into one thread, it makes it really hard for anyone to help :-)

But yeah, take a look at those docs, and see if that helps. The website troubleshooting doc will help resolve any issues with Apache being confused about your IP address, if that's indeed the issue.

Let us know how that goes!

-Eric

Sun, 05/08/2011 - 18:04
Morpheus

It was the wrong ip adress in the virtualhosts.. i set the local 192.168... ip adress and it's working like a charm now.. it was setting the external ip adress for the virtualhosts in apache configurations.. that's why it wasn't working as it should.. see for yourself haha.. check the video too btw.. http://digitality.com.br

YES... xD

Mail is working, http.. now the problem is the dns.. well here are my options:

1- Host the master server in the same server that i'm gonna use to host the other domains.. and set another server with a couple of ips.. to get all my slave servers working in it..

2 - Host master dns server in a different server and the slave in yet another different server.. twice the redundancy.. the frist option is nice because.. if actually that server goes down so will the webpages.. it wouldn't make much sense spending in that..

Basically:

Dedicated server 1: (hosts the master dns for server 1 and all the domains for server 1) VPS 1: (Slave for the server 1) Dedicaded Server 2: (hosts the master dns for server 2 and all the domains for server 2) VPS2 : (Slave for the server 2)

Problem is.. I'm gonna have to pay for each of those vps servers for each dedicated server i run.. so it wouldn't be bad if i could just get 1 vps.. with a lot of ips and run every slave server in there.. or even better.. could i just run multiple zones like in windows? So i could just rent ONE vps with ONE secondary ip..

Yet another option..

Use the next server as slave from the other.. here:

Server1:

NS1 http

Server 2: NS Slave from 1 Master for 2 http

Server 3: NS Slave from 2 Master for 1 http

Server 4: NS Slave from 3 Master for 4 http.

Gee.. i'm lost hahaha.. any ideas?

Q: Why can't i just run both in the same server? A: Same IP adress, ISP won't give me another IP (i already tried pretty hard.. they won't..)

Sun, 05/08/2011 - 18:14
andreychek

You could always rent a VPS, and run your website and the full DNS services there :-)

You can certainly run as many DNS zones and Apache websites as you want off of one server and one IP address.

Also, many domain name registrars (including GoDaddy) don't require you to have two different IP addresses for your two nameservers. You could always setup two nameservers, but both on the same IP address. With that setup, you wouldn't need a slave DNS server, and you'd be able to run the entire setup from your existing server.

-Eric

Sun, 05/08/2011 - 18:25 (Reply to #12)
Morpheus

Unfortunately the main brazilian registrar DOES require 2 -.-*

but yes.. you right.. btw i'm running the slave in this test in another server.. but the slave points to somewhere else..

Sun, 05/08/2011 - 20:50
Morpheus

http://digitality.com.br won't work as www.digitality.com.br i'm sure is something with the dns server.. but what.. everything looks fine :/

ERROR The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: http://digitality.com.br

Unable to determine IP address from host name "digitality.com.br"

The DNS server returned:

Server Failure: The name server was unable to process this query.

This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.

Sun, 05/08/2011 - 21:04
andreychek

Both digitality.com.br and www.digitality.com.br work for me. It's possible that your ISP's DNS has cached it not being there (a negative cache hit). It could take a few hours for that to clear out.

My recommendation is to wait until tomorrow, and if you're still having the same problem, open up a new thread, and in that thread, describe your DNS setup as well as well as any unusual intodns.com output (intodns.com is good for helping with DNS issues).

-Eric

Sun, 05/08/2011 - 22:26 (Reply to #15)
Morpheus

BUG!

Just rebooted the server.. no big deal..

What about the other thing eric? what you think?

Sun, 05/08/2011 - 22:39
andreychek

Hrm... which other thing? :-)

Mon, 05/09/2011 - 00:01 (Reply to #17)
Morpheus

Regarding the dns.. i don't know witch way is a better solution.. i'm not even close of a decision :/

Mon, 05/09/2011 - 10:13
andreychek

Hrm, I'm little confused about what you're exactly you're asking :-)

Are you asking if one slave DNS server can be a slave to multiple masters?

In that case, I think so, but you'd probably need to test that :-)

-Eric

Mon, 05/09/2011 - 16:38 (Reply to #19)
Morpheus

Thanks...

I'll do some testing now.. really man thank you.. god bless u saved my day week month life...

Tue, 05/10/2011 - 19:56 (Reply to #20)
Morpheus

Well another issue came to my attention..

I followed the "DNS Slave Auto-configuration" guide for the slave dns server configuration (just to mention it's another webmin/virtualmin.. another ip.. different server/network..)

So.. the master dns actually auto created a zone in the slave server but.. it didn't create any records.. if i try to add the slave server as the slave in the dns registrar settings.. it gives me a dns failure (probably because there are no records at all in the slave server..)

What is the problem now? Something with the zone transfers?

Oh and before the master server was working.. but i could only get the www.mydomain.com to work not the domain.com .. the domain.com would point to the ns2 server.. it looks like something is seriusly wrong with my dns servers...

Topic locked