[SOLVED] cant access my website hosted in my server
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have set up a webserver. I have stored the files in /var/www/html/mydir directory. When i try to access using my static ip i get the apache test page. How to link to my website stored in the path above mentioned to my static ip.
Your answer is correct. I can access through that.. But there is a way to redirect static ip address to my directory where the files are stored... I dont know how... Two years back i did that but now i am not getting how to do it.
In the httpd.conf or such, change the DocumentRoot to /var/www/html/mydir
or move your content(s) one directory "up" from mydir ... ie, /var/www/html
then http://static.ip will work also without modification to the httpd.conf
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.