First time here? Check out the FAQ!

Revision history  [back]

GET /m/default/media/style/style.css?v=2 HTTP/1.1" 404

Im getting this for basically any file that starts with /m/

==> /var/log/apache2/askbot/access_log <==
#MY IP ADDR HERE# - - [01/Aug/2012:14:25:43 +0200] "GET /m/default/media/style/style.css?v=2 HTTP/1.1" 404 2359

==> /var/log/apache2/askbot/error_log <==
[Wed Aug 01 14:25:44 2012] [debug] mod_deflate.c(615): [client #MY IP ADDR HERE#] Zlib: Compressed 14003 to 2098 : URL /m/common/media/js/jquery.history.js, referer: http://#MY IP ADDR HERE#:8080/questions/

The basic questions page comes up. But its just the raw html. No js, no media, nothing else.

This is when i run with this apache configuration.

<VirtualHost *:8080>
 ServerAdmin you@example.com
 DocumentRoot /srv/askbotDjango
 ServerName askbot

 #aliases to serve static media directly
 #will probably need adjustment
 Alias /static/ /srv/askbotDjango/static/
 Alias /upfiles/ /srv/askbotDjango/askbot/upfiles/
 <DirectoryMatch "/srv/askbotDjango/askbot/skins/([^/]+)/media">
    Order deny,allow
    Allow from all
 </DirectoryMatch>
 <Directory "/srv/askbotDjango/askbot/upfiles">
    Order deny,allow
    Allow from all
 </Directory>
 <Directory "/srv/askbotDjango/static/">
    Order allow,deny
    Allow from all
 </Directory>
 #must be a distinct name within your apache configuration
 WSGIDaemonProcess askbot2
 WSGIProcessGroup askbot2
 WSGIScriptAlias / /srv/askbotDjango/django.wsgi
 #make all admin stuff except media go through secure connection
    <LocationMatch "/admin(?!/media)">
 RewriteEngine on
     RewriteRule /admin(.*)$ https://#MY IP ADDR HERE#/admin$1 [L,R=301]
     </LocationMatch>
 CustomLog /var/log/apache2/askbot/access_log common
 ErrorLog /var/log/apache2/askbot/error_log
 LogLevel debug
</VirtualHost>

 <VirtualHost 127.0.0.1:443>
 ServerAdmin you@example.com
 DocumentRoot /srv/askbotDjango
 ServerName example.com
 <LocationMatch "^(?!/admin)">
     RewriteEngine on
     RewriteRule django.wsgi(.*)$ http://#MY IP ADDR HERE#:8080$1 [L,R=301]
 </LocationMatch>
 SSLEngine on
 #your SSL keys
 SSLCertificateFile /etc/httpd/ssl.crt/server.crt
 SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
 Alias /admin/media/ /usr/local/lib/python2.6/site-packages/django/contrib/admin/media/
 WSGIScriptAlias / /srv/askbotDjango/django.wsgi
 CustomLog /var/log/apache2/askbot/access_log common
 ErrorLog /var/log/apache2/askbot/error_log
</VirtualHost>

The same happens if i run on port 80.

If i run the server with the test script:

`python manage.py runserver `hostname -i`:8000`

Then it seems to be working.

[EDIT] I just tried this command. There seems to be an error at the end.

sudo -E pip install --upgrade askbot

running install_data

creating /usr/local/man

error: could not create '/usr/local/man': File exists

----------------------------------------
  Rolling back uninstall of nose
Command /usr/bin/python -c "import setuptools;__file__='/srv/build/nose/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-RPOhQj-record/install-record.txt failed with error code 1
Storing complete log in /home/q2a/.pip/pip.log

GET /m/default/media/style/style.css?v=2 HTTP/1.1" 404

Im getting this for basically any file that starts with /m/

==> /var/log/apache2/askbot/access_log <==
#MY IP ADDR HERE# - - [01/Aug/2012:14:25:43 +0200] "GET /m/default/media/style/style.css?v=2 HTTP/1.1" 404 2359

==> /var/log/apache2/askbot/error_log <==
[Wed Aug 01 14:25:44 2012] [debug] mod_deflate.c(615): [client #MY IP ADDR HERE#] Zlib: Compressed 14003 to 2098 : URL /m/common/media/js/jquery.history.js, referer: http://#MY IP ADDR HERE#:8080/questions/

The basic questions page comes up. But its just the raw html. No js, no media, nothing else.

This is when i run with this apache configuration.

<VirtualHost *:8080>
 ServerAdmin you@example.com
 DocumentRoot /srv/askbotDjango
 ServerName askbot

 #aliases to serve static media directly
 #will probably need adjustment
 Alias /static/ /srv/askbotDjango/static/
 Alias /upfiles/ /srv/askbotDjango/askbot/upfiles/
 <DirectoryMatch "/srv/askbotDjango/askbot/skins/([^/]+)/media">
    Order deny,allow
    Allow from all
 </DirectoryMatch>
 <Directory "/srv/askbotDjango/askbot/upfiles">
    Order deny,allow
    Allow from all
 </Directory>
 <Directory "/srv/askbotDjango/static/">
    Order allow,deny
    Allow from all
 </Directory>
 #must be a distinct name within your apache configuration
 WSGIDaemonProcess askbot2
 WSGIProcessGroup askbot2
 WSGIScriptAlias / /srv/askbotDjango/django.wsgi
 #make all admin stuff except media go through secure connection
    <LocationMatch "/admin(?!/media)">
 RewriteEngine on
     RewriteRule /admin(.*)$ https://#MY IP ADDR HERE#/admin$1 [L,R=301]
     </LocationMatch>
 CustomLog /var/log/apache2/askbot/access_log common
 ErrorLog /var/log/apache2/askbot/error_log
 LogLevel debug
</VirtualHost>

 <VirtualHost 127.0.0.1:443>
 ServerAdmin you@example.com
 DocumentRoot /srv/askbotDjango
 ServerName example.com
 <LocationMatch "^(?!/admin)">
     RewriteEngine on
     RewriteRule django.wsgi(.*)$ http://#MY IP ADDR HERE#:8080$1 [L,R=301]
 </LocationMatch>
 SSLEngine on
 #your SSL keys
 SSLCertificateFile /etc/httpd/ssl.crt/server.crt
 SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
 Alias /admin/media/ /usr/local/lib/python2.6/site-packages/django/contrib/admin/media/
 WSGIScriptAlias / /srv/askbotDjango/django.wsgi
 CustomLog /var/log/apache2/askbot/access_log common
 ErrorLog /var/log/apache2/askbot/error_log
</VirtualHost>

The same happens if i run on port 80.

If i run the server with the test script:

`python manage.py runserver `hostname -i`:8000`

Then it seems to be working.

[EDIT] I just tried this command. There seems to be an error at the end.

sudo -E pip install --upgrade askbot

running install_data

creating /usr/local/man

error: could not create '/usr/local/man': File exists

----------------------------------------
  Rolling back uninstall of nose
Command /usr/bin/python -c "import setuptools;__file__='/srv/build/nose/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-RPOhQj-record/install-record.txt failed with error code 1
Storing complete log in /home/q2a/.pip/pip.log

GET /m/default/media/style/style.css?v=2 HTTP/1.1" 404

Im getting this for basically any file that starts with /m/

==> /var/log/apache2/askbot/access_log <==
#MY IP ADDR HERE# 130.100.105.69 - - [01/Aug/2012:14:25:43 +0200] "GET /m/default/media/style/style.css?v=2 HTTP/1.1" 404 2359

==> /var/log/apache2/askbot/error_log <==
[Wed Aug 01 14:25:44 2012] [debug] mod_deflate.c(615): [client #MY IP ADDR HERE#] 130.100.105.69] Zlib: Compressed 14003 to 2098 : URL /m/common/media/js/jquery.history.js, referer: http://#MY IP ADDR HERE#:8080/questions/
http://130.100.126.187:8080/questions/

The basic questions page comes up. But its just the raw html. No js, no media, nothing else.

This is when i run with this apache configuration.

<VirtualHost *:8080>
*:80>
 ServerAdmin you@example.com
 DocumentRoot /srv/askbotDjango
 ServerName askbot

 #aliases to serve static media directly
 #will probably need adjustment
 Alias /static/ /srv/askbotDjango/static/
 Alias /upfiles/ /srv/askbotDjango/askbot/upfiles/
 <DirectoryMatch "/srv/askbotDjango/askbot/skins/([^/]+)/media">
    Order deny,allow
    Allow from all
 </DirectoryMatch>
 <Directory "/srv/askbotDjango/askbot/upfiles">
    Order deny,allow
    Allow from all
 </Directory>
 <Directory "/srv/askbotDjango/static/">
    Order allow,deny
    Allow from all
 </Directory>
 #must be a distinct name within your apache configuration
 WSGIDaemonProcess askbot2
 WSGIProcessGroup askbot2
 WSGIScriptAlias / /srv/askbotDjango/django.wsgi
 #make all admin stuff except media go through secure connection
    <LocationMatch "/admin(?!/media)">
 RewriteEngine on
     RewriteRule /admin(.*)$ https://#MY IP ADDR HERE#/admin$1 https://130.100.126.187/admin$1 [L,R=301]
     </LocationMatch>
 CustomLog /var/log/apache2/askbot/access_log common
 ErrorLog /var/log/apache2/askbot/error_log
 LogLevel debug
</VirtualHost>

 <VirtualHost 127.0.0.1:443>
 ServerAdmin you@example.com
 DocumentRoot /srv/askbotDjango
 ServerName example.com
 <LocationMatch "^(?!/admin)">
     RewriteEngine on
     RewriteRule django.wsgi(.*)$ http://#MY IP ADDR HERE#:8080$1 http://130.100.126.187:8080$1 [L,R=301]
 </LocationMatch>
 SSLEngine on
 #your SSL keys
 SSLCertificateFile /etc/httpd/ssl.crt/server.crt
 SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
 Alias /admin/media/ /usr/local/lib/python2.6/site-packages/django/contrib/admin/media/
 WSGIScriptAlias / /srv/askbotDjango/django.wsgi
 CustomLog /var/log/apache2/askbot/access_log common
 ErrorLog /var/log/apache2/askbot/error_log
</VirtualHost>

The same happens if i run on port 80.

If i run the server with the test script:

`python manage.py runserver `hostname -i`:8000`

Then it seems to be working.