Apache2 website not public - confused on set up
Hi, I have created and installed LAMP and on my apache2 webserver I have trouble with the whole virtualhost and things I need to change and also creating a static-IP and what a LAN port is and how someone would go about port forwarding on a westell A90-750060-07
|
That's actually a whole range of questions. I'll start with the IP related ones.
About getting a static IP address: First of all, you don't "create" a static IP, your ISP allocates one for you. The idea is that you have a domain name for your site ("www.somedomain.com") and it points to an IP address on the Internet. If you're a private broadband customer, chances are your ISP has given you a dynamically allocated address. This means that if your router is rebooted, it may come back with a different address. Your previous address may then be given to another customer. This is a problem if the domain name still points to your previous address, which it normally will. Getting a static, public IP on your router eliminates this problem, but most ISP's charge extra for this service. (Strictly speaking, you don't need a static address if you register your domain with dyndns.org, no-ip.com or another provider of a dynamic DNS service. Instead, you install a small program on your server, and it will update the domain host record whenever your public IP address changes. It's not quite as good as having a fixed IP address, but it may suffice for a small, private web site. About port forwarding: Since users on the Internet will be connecting to your public IP address, which technically is allocated to your router, while the web site resides on your server with another, internal IP address, you need to set up "port forwarding". Web traffic (HTTP and HTTPS) use the TCP protocol with specific port numbers (80 and 443 to be exact), and luckily it is possible to tell the router to forward incoming traffic to these ports to a server on the inside. I wasn't able to find specific instructions for your router, but here's a guide for the Westel A90-750015-07. Perhaps your model is similar. One thing about forwarding ports 80 and 443: Most routers use at least one of these ports for their built-in web-based management interface, and may not permit you to forward the port unless you first change the port of the internal web server. In that case, you should look for an option to do this, and select a port in the "high" range (between 1024 and 65535). Once this is done, you will need to specify that port number when you connect to the router's web interface. For isntance, if your router has the internal IP address 192.168.1.1 and you move the web interface to port 8000, you will need to type "http://192.168.1.1:8000" to log in to the router. See if you can get the port forwarding to work first. You can use an external port probing service like this to see if the port is open. |
Quote:
Alright thank you so much for this I am glad there are still people willing to help.....This post explained a lot to me but I have a few questions to get it up and running......
|
Quote:
You can theoretically use any port, but if you use ports other than 80 for HTTP or 443 for HTTPS, the users will have to enter the port number manually in their browsers (http://www.alternative-port.com:2000). Quote:
Quote:
The exact steps to configure a VirtualHost depends on the web server. You are using Apache, which is by far the most common web server, so there's no shortage of tutorials. Here's an example of an extremely simple VirtualHost definition: Code:
<VirtualHost *:80> |
And when I port forward it asks me which LAN IP I want to use for it...would that be my laptops internal ip or my routers internal ip
192.168.200.X (router) 192.168.200.XXX (laptop) |
It also asks me for a LAN port? What would I put there?
|
Here is what my first port forwarding screen looks like
|
The "LAN IP" is the IP address of your webserver. If the server is running on your laptop, you enter the laptop's IP address.
The "LAN port" is the TCP port number the web server is running on. It is possible to forward a port on the router to an entirely different port number on an internal server, but in your case the port number is the same as on the router, 80. |
Ok I think I did everything right....but for some reason it still won't come up when people(not on my internet) type www.mydomain.com as a URL :O
Here is what the port forward looks like |
---------------nevermind
|
All times are GMT -5. The time now is 12:50 AM. |