Hello I have setup an Apache/PHP/MySQL on CentOS 5.5 with and have installed WebMin on it. I would like to take my server online. And try to host multiple sites on it for my research.
My current server is behind a router. I have 2 static Ip addresses, its bundled with the internet package that I subscribed to. Though the connection has NAT enabled because I share this internet connection with other computers. Its a hybrid network as I have DHCP enabled for a certain range on the router. And I have configured some servers to have a private static IP address for obvious reasons.
The webserver that I configured has a static private ip of 192.168.1.* , I have port forwarded port 80 to the internal IP address of the server.
My domain name has an A record assigned to it which my public IP address, but when I try to access my domain from my current internet connection I am redirected to my routers default page.
I can access the page from a proxy or another internet connection, but the page is not displayed perfectly (the images don't display at all and the formatting of the page is all messed up).
I have wordpress on the default domain (I have configured a virtual host) but all I can see is the text on the page and no pictures and the access to the page is also very slow. I have forwarded port 3306 for MySQL for the same server IP address. I can access the wordpress instance perfectly when accessed locally.
How do I solve this?
I would also like to setup a DNS server either on this webserver or on another machine, but since I am behind the router how do I configure the zones ? - with the private IP of the server or the public IP. I know that for DNS I have to forward port 53. But beyond this I'm kind of stuck. SomeOne please advise this is the first time I'm trying this out by using the documentation of Webmin, Apache, MySQL and some tutorials on the internet. So please be kind to my questions they could be a little basic but I'm kinda stuck here for sometime now.
Thanks.
Renee