Apache2, making my site publicly available
Posted
by Shackler
on Server Fault
See other posts from Server Fault
or by Shackler
Published on 2010-03-18T21:05:20Z
Indexed on
2010/03/18
21:11 UTC
Read the original article
Hit count: 566
Hello, I want to make my apache 2 development server public to the internet, it is a Django based website.
Here is my apache2 config:
<VirtualHost *:80>
Alias /media /home/user/myproject/statics
Alias /admin_media /home/myuser/django/Django-1.1.1/django/contrib/admin/media
WSGIScriptAlias / /home/myuser/myproject/myproject_wsgi.py
WSGIDaemonProcess myproject user=myuser group=myuser threads=25
WSGIProcessGroup myproject
</VirtualHost>
When I do netstat -lntup
I get:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
udp 0 0 0.0.0.0:5353 0.0.0.0:* -
udp 0 0 0.0.0.0:38582 0.0.0.0:*
I connect with ADSL thus I am behind a router. For this I have made my computer DMZ enabled to my machine.
What can be the problem? When I try to login with my ip, I get my routers config page, when a friend tries to connect to me from internet, he gets "not authorized".
© Server Fault or respective owner