- 论坛徽章:
- 0
|
我的vps 地址是 108.171.241.* 然后我想直接ip 地址访问
我在/home/osqa/osqa-server 下的文件 ,请问应该如何配置
下面是配置的模板,但是我还是不知道
ServerAdmin forum@example.com
DocumentRoot /home/osqa/osqa-server
ServerName example.com 这里是如何填的
- # Must be readable and writable by apache
- WSGISocketPrefix ${APACHE_RUN_DIR}
- #NOTE: all urs below will need to be adjusted if
- #settings.FORUM_SCRIPT_ALIAS !='' (e.g. = 'forum/')
- #this allows "rooting" forum at [http://example.com/forum], if you like
- <VirtualHost *:80>
- ServerAdmin forum@example.com
- DocumentRoot /home/osqa/osqa-server
- ServerName example.com
- #run mod_wsgi process for django in daemon mode
- #this allows avoiding confused timezone settings when
- #another application runs in the same virtual host
- WSGIDaemonProcess OSQA
- WSGIProcessGroup OSQA
- #force all content to be served as static files
- #otherwise django will be crunching images through itself wasting time
- Alias /m/ "/home/osqa/osqa-server/forum/skins/"
- <Directory "/home/osqa/osqa-server/forum/skins">
- Order allow,deny
- Allow from all
- </Directory>
- Alias /upfiles/ "/home/osqa/osqa-server/forum/upfiles/"
- <Directory "/home/osqa/osqa-server/forum/upfiles">
- Order deny,allow
- Allow from all
- </Directory>
- #this is your wsgi script described in the prev section
- WSGIScriptAlias / /home/osqa/osqa-server/osqa.wsgi
- CustomLog ${APACHE_LOG_DIR}/osqa.access.log common
- ErrorLog ${APACHE_LOG_DIR}/osqa.error.log
- </VirtualHost>
复制代码 |
|