apache中vhost的配置檔案

2021-06-08 17:35:34 字數 2587 閱讀 9775

#設定本地 公司站點

#執行p2p_tracker 站點

wsgiscriptalias /p2p_tracker d:/usr/wwwroot/company/system/p2p_tracker/pbi_p2p_tracker/wsgi/django.wsgi

alias /p2p_tracker_media d:/usr/wwwroot/company/system/p2p_tracker/pbi_p2p_tracker/p2p_tracker_media

alias /admin_media d:/usr/wwwroot/company/system/p2p_tracker/pbi_p2p_tracker/admin_media

order allow,deny

allow from all

sethandler none

#設定本地站點

serveradmin [email protected]

documentroot d:/usr/wwwroot

servername localhost

serveralias test.myweb.com

errorlog logs/error.log

customlog logs/access.log common

options indexes followsymlinks

allowoverride all

order allow,deny

allow from all

#執行django站點

##    order allow,deny

#    allow from all

#    sethandler python-program

#    pythonpath "sys.path+['d:/usr/wwwroot/']"

#    pythonhandler django.core.handlers.modpython

#    setenv django_settings_module blog.settings

##執行p2s_server站點

wsgiscriptalias /p2v_server "d:/usr/wwwroot/p2v_server/pbi_p2p_server/wsgi/django.wsgi"

alias /p2p_server_media2 d:/usr/wwwroot/p2v_server/pbi_p2p_server/p2p_server_media2

alias /admin_media2 d:/usr/wwwroot/p2v_server/pbi_p2p_server/admin_media2

order allow,deny

allow from all

sethandler none

#執行pbi_p2p_server站點

wsgiscriptalias /p2p_server "d:/usr/wwwroot/p2p_server/pbi_p2p_server/wsgi/django.wsgi"

alias /p2p_server_media d:/usr/wwwroot/p2p_server/pbi_p2p_server/p2p_server_media

alias /admin_media d:/usr/wwwroot/p2p_server/pbi_p2p_server/admin_media

order allow,deny

allow from all

sethandler none

#執行shunt站點

wsgiscriptalias /shunt "d:/usr/wwwroot/shunt/pbi_shunt/wsgi/django.wsgi"

alias /media d:/usr/wwwroot/shunt/pbi_shunt/media

alias /admin_media d:/usr/wwwroot/shunt/pbi_shunt/admin_media

order allow,deny

allow from all

sethandler none

Apache的vhost虛擬主機配置

首先找到apache的配置檔案httpd.conf 確認有下面一行 同時在httpd.conf啟用如下 servername localhost 80 如果不啟用會報錯如下 同時還要 去掉 namevirtualhost 80前面的 號,不然會報錯如下 如果沒有,請在配置檔案末尾新增。然後找到htt...

php設定Apache虛擬主機vhost

1 使用php環境使用xampp 2 win7 64位系統 3 xampp安裝在c盤根目錄 1 在系統中註冊主機頭 使用文字編輯工具編輯c windows system32 drivers etc hosts檔案,在檔案中新增一行記錄如下所示 127.0.0.1 oneym.dev 2 啟用apac...

Linux lnmp 配置虛擬網域名稱 vhost

1 首先假設我們的專案在 home wwwroot default bathroom bathroom 就是我們的框架專案 具體過程如下 1 cd usr local nginx conf vhost 目錄下 2 vim example1.com.conf 建立乙個檔案並把以下內容拷貝進去 serv...