亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1446 | 回復(fù): 1
打印 上一主題 下一主題

apache 的一個配置問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2012-04-10 19:37 |只看該作者 |倒序瀏覽
我的vps 地址是 108.171.241.*  然后我想直接ip 地址訪問
我在/home/osqa/osqa-server 下的文件 ,請問應(yīng)該如何配置

下面是配置的模板,但是我還是不知道
ServerAdmin forum@example.com
        DocumentRoot /home/osqa/osqa-server
        ServerName example.com  這里是如何填的

  1. # Must be readable and writable by apache
  2. WSGISocketPrefix ${APACHE_RUN_DIR}

  3. #NOTE: all urs below will need to be adjusted if
  4. #settings.FORUM_SCRIPT_ALIAS !='' (e.g. = 'forum/')
  5. #this allows "rooting" forum at [http://example.com/forum], if you like
  6. <VirtualHost *:80>
  7.         ServerAdmin forum@example.com
  8.         DocumentRoot /home/osqa/osqa-server
  9.         ServerName example.com

  10.         #run mod_wsgi process for django in daemon mode
  11.         #this allows avoiding confused timezone settings when
  12.         #another application runs in the same virtual host
  13.         WSGIDaemonProcess OSQA
  14.         WSGIProcessGroup OSQA

  15.         #force all content to be served as static files
  16.         #otherwise django will be crunching images through itself wasting time
  17.         Alias /m/ "/home/osqa/osqa-server/forum/skins/"
  18.         <Directory "/home/osqa/osqa-server/forum/skins">
  19.                 Order allow,deny
  20.                 Allow from all
  21.         </Directory>
  22.         Alias /upfiles/ "/home/osqa/osqa-server/forum/upfiles/"
  23.         <Directory "/home/osqa/osqa-server/forum/upfiles">
  24.                 Order deny,allow
  25.                 Allow from all
  26.         </Directory>

  27.         #this is your wsgi script described in the prev section
  28.         WSGIScriptAlias / /home/osqa/osqa-server/osqa.wsgi

  29.         CustomLog ${APACHE_LOG_DIR}/osqa.access.log common
  30.         ErrorLog ${APACHE_LOG_DIR}/osqa.error.log
  31. </VirtualHost>
復(fù)制代碼

論壇徽章:
4
技術(shù)圖書徽章
日期:2013-09-23 10:22:37獅子座
日期:2013-10-15 23:31:54卯兔
日期:2013-11-11 17:33:15金牛座
日期:2013-11-15 17:25:28
2 [報告]
發(fā)表于 2012-04-10 22:13 |只看該作者
apache默認(rèn)會訪問第一個virtualhost的配置
反正你用ip地址訪問
ServerName example.com
就可以了,只要確保這個virtualhost之前沒有別的virtualhost配置
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP