[SOLVED] How to edit configuration file in apache for hosting website on my machine.
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
How to edit configuration file in apache for hosting website on my machine.
I am using ubuntu 10.04 64 bit on my machine. I have static IP address and I want to use the static IP address to host my web site. I have installed apache2.2.17 on this machine.Now what I have done is when I type localhost it works.
Now I am sitting behind a local network and my local IP is 192.168.1.8
and public IP is some static IP address.I am using DLink switch which connects all these computers.
Now I want to make my computer web server such that when that static Ip is typed in browser anywhere in the world then my index.html file should be opened.
I have a device ADSL2 Router in which a phone cable is coming and has 4 outputs for RJ45 jack and one of the output is connected to Dlink switch from which 4 computers are connected and one computer is mine.Now help me to configure httpd.conf file so that when static IP address is typed in any browser any where in the world my index.html site is opened.
I am new to it so ignore if something is wrong with it,and if you required any other information that is missing I can provide you.
I advise you to delete the public IP address in your post ASAP. That's asking for trouble. With regard to your setup, you should configure your router to assign always the same IP to your computer OR configure your computer with a static IP as you've done. Next you'll need to tell your router to forward all incoming traffic on port 80 to your LAN IP. And as a last point you'll need to configure Apache to listen on that IP. If you're using Ubuntu than you'll most likely have to edit /etc/apache2/sites-available/default or create a site-specific file to include your IP.
That would be quite impossible without knowing make and model of your router. I assume you do have access to it (username/password)? In order to learn how to configure Apache to bind to a specific IP, have a look at the documentation.
Can you be a bit more specific? Does your post mean that you've configured everything and that it's working as it should or did you only configure the port forwarding on the router? Is there some part left to be configured?
I have done with port forwarding and listening to that IP and any body can open my webpage when apache is on. I have done port forwarding using access management option--->Porttriggering and virtual server option.
So if I'm understanding you correctly, you're problem is solved? If that's the fact then please mark the thread as such. Also, since you'll be running a webserver on the internet now would be the perfect time to put in place some necessary security measures to avoid your server being hacked or subject to DOS or DDOS attacks. You never can be to careful.