view plaincopy to clipboardprint?
#<VirtualHost *:80>
# ServerName dev.cgcad.com
# DocumentRoot /var/www/reviews/htdocs
#
# # Error handlers
# ErrorDocument 500 /errordocs/500.html
# Serve django pages
<Location "/reviews">
PythonPath "['/var/www/reviews/conf'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug Off
# Used to run multiple mod_python sites in the same apache
PythonInterpreter reviewboard_reviews
</Location>
# Serve static media without running it through mod_python
# (overrides the above)
<Location "/media">
SetHandler None
</Location>
<Location "/errordocs">
SetHandler None
</Location>
# Alias static media requests to filesystem
Alias /media /var/www/reviews.cgcad.com/htdocs/media
Alias /errordocs /var/www/reviews.cgcad.com/htdocs/errordocs
#</VirtualHost>
#<VirtualHost *:80>
# ServerName dev.cgcad.com
# DocumentRoot /var/www/reviews/htdocs
#
# # Error handlers
# ErrorDocument 500 /errordocs/500.html
# Serve django pages
<Location "/reviews">
PythonPath "['/var/www/reviews/conf'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug Off
# Used to run multiple mod_python sites in the same apache
PythonInterpreter reviewboard_reviews
</Location>
# Serve static media without running it through mod_python
# (overrides the above)
<Location "/media">
SetHandler None
</Location>
<Location "/errordocs">
SetHandler None
</Location>
# Alias static media requests to filesystem
Alias /media /var/www/reviews.cgcad.com/htdocs/media
Alias /errordocs /var/www/reviews.cgcad.com/htdocs/errordocs
#</VirtualHost>
重启apache,然后在浏览器中输入你设定的网址,ReviewBoard站点应该就能正常工作了:)
----------------------------------------恼怒的分割线----------------------------------------------