You are not logged in.

#1 2005-06-16 00:27:39

Todd_Z
Member
From: MA, USA
Registered: 2005-01-31
Posts: 35
Website

Using archlinux as a web server....

I can run apache, php5, mysql 4.xxx locally, but I'm trying to make it so that anyone can enter my ip address and access the files.  Any tutorials on how to do this? Or is a quick fix?  I already port forwarded 80 to my box.  Thanks.

Offline

#2 2005-06-16 00:30:35

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Using archlinux as a web server....

That should be all, but if your ISP is like mine, they won't allow port 80 to be open. Try forwarding port 81 on your router to port 80 on your box. Then access:

12.34.567.8:81 from an external computer and see if it works.

If you can access it from http://localhost, then you can access it externally, providing it can get through firewall and such.

Dusty

Offline

#3 2005-06-16 00:32:22

Todd_Z
Member
From: MA, USA
Registered: 2005-01-31
Posts: 35
Website

Re: Using archlinux as a web server....

Then how do I get a url to be directed to my ip?  Can i go straight to the DNS, or do I have to use a service like goDaddy?

Offline

#4 2005-06-16 02:44:03

Todd_Z
Member
From: MA, USA
Registered: 2005-01-31
Posts: 35
Website

Re: Using archlinux as a web server....

I can get to apache served pages with 192.168.0.3 in my browser, and I have 80 forwarded to .3 on my router control panel, yet I can't reach it on my ip address...

netstat:
tcp        0      0 :::80                   :::*                    LISTEN      1698/httpd

That seems healthy... right?
Since localhost works, 192.168.0.3 works, just not the network's ip address

Offline

#5 2005-06-20 18:38:06

Todd_Z
Member
From: MA, USA
Registered: 2005-01-31
Posts: 35
Website

Re: Using archlinux as a web server....

Alright, so I realized that computers outside the network were able to use my ip address to get to the server, however I want to be able to use the external ip address too.  I tried

192.168.0.3             XXX.XXX.XXX.XXX

in my /etc/hosts

file, but this did not work => connection was refused at my ip address.

Any clues?

Offline

#6 2005-06-20 19:08:39

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: Using archlinux as a web server....

Todd_Z wrote:

Then how do I get a url to be directed to my ip?  Can i go straight to the DNS, or do I have to use a service like goDaddy?

something like no-ip.com or dyndns.com is what you need. but it needs to be mapped to your network IP obviously, not your local IP. as dusty said, you might need to change the port if it's not working externally on 80. if it is, you're set, and you shouldn't need to add anything to /etc/hosts unless you want to use a name instead of a local IP.

Offline

#7 2005-06-21 01:19:30

Todd_Z
Member
From: MA, USA
Registered: 2005-01-31
Posts: 35
Website

Re: Using archlinux as a web server....

The ip works for external computers, but from my own computer (which is the host), I can't access it with the external ip, only 192.168.0.3 - the local ip.  I was hoping that I could map my external ip to my internal ip, through /etc/hosts, but it seems that only string names can be mapped to ip addresses.

Offline

Board footer

Powered by FluxBB