Setting up apache behind a router
Verde Denim
tdldev at gmail.com
Thu Jun 11 13:05:58 UTC 2009
On Mon, Jun 8, 2009 at 7:31 PM, Marco Segreto <msmarc003 at gmail.com> wrote:
> I have Ubuntu 8.10 server set up on my network which is connect to the
> internet through a linksys router. I wanted to be able to access
> websites on my server but need to go through a port besides 80 because
> the router blocks this port. I've enabled port forewarding on port 8080
> on my router and have set up a static IP for my linux machine. When I
> try and connect to my server with myserver.net:8080 it still times out.
> I'm pretty sure I set up everything correctly though. Here's my
> ports.conf file in the apache2 folder:
>
> NameVirtualHost *:80
> Listen 80
> Listen 8080
>
> <IfModule mod_ssl.c>
> #
> #
> Listen 443
> </IfModule>
>
> I tried switching to VirtualHost *:8080 as well as changing it in the
> default file in the sites-available folder but it didn't work either.
> I've done this before on my Hardy system and I had no NameVirtualHost
> option so I'm not really sure why it's there now.
>
I setup apache on my local server (192.168.1.105), and opened port 80 for
192.168.1.103 (my laptop)
by opening ff and asking for address 192.168.1.105 I got the default
index.html in /var/www on the server.
If you can't get port 80 to bite on your other local machines, try adding
one of their ip's to your fw rules for accept port 80 and see if it works
locally.
unless /myserver.net/ is set in the other machines' hosts files, they won't
find it except by ip address.
hth
Jack
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090611/f31c0712/attachment.html>
More information about the ubuntu-users
mailing list