Setting up apache web server behind a router
Steve Reilly
sfreilly at roadrunner.com
Mon Jun 8 23:58:47 UTC 2009
Marco Segreto 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.
>
does your /etc/apache2/sites-available/default look like this?
NamevirtualHost *:80
<VirtualHost *:80>
ServerName mysite.com
ServerAlias mysite.com
ServerAdmin sfreilly at roadrunner.com
DocumentRoot /var/www/serendipity
CustomLog /var/log/apache2/mysite-access.log common
</VirtualHost>
but with the port changed to 8080? and have you restarted apache for
changes to take effect.
steve
More information about the ubuntu-users
mailing list