Попытался на домашнем сервере создать простенький сайт на webpy. Проблема при деплое на Apache: можно зайти на локалхосте по http://localhost/test, а при заходе извне по имени, полученном в no-ip.com ошибка: The requested URL /test/ was not found on this server.
/etc/apache2/sites-available/test.no-ip.net.conf:
<VirtualHost *:80>
ServerName test.no-ip.net:80
DocumentRoot /home/user/develop/test
WSGIScriptAlias /test /src/code.py
# the Alias directive
Alias /static /home/user/develop/test
<Directory />
Order Allow,Deny
Allow From All
Options -Indexes
</Directory>
# because Alias can be used to reference resources outside docroot, you
# must reference the directory with an absolute path
<Directory /home/user/develop/test/static>
# directives to effect the static directory
Options +Indexes
</Directory>
</VirtualHost>
/etc/apache2/httpd.conf:
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias /test /home/user/develop/test/src/code.py
Alias /static /home/user/develop/test/static/
AddType text/html .py
<Directory /home/user/develop/test/>
Order deny,allow
Allow from all
</Directory>
/etc/hosts:
127.0.0.1 localhost
127.0.1.1 user-asus
0.0.0.0 test.no-ip.net