財神娛樂首存即享優惠回饋唷~詳情請進👉

Windo萬來博娛樂城評價 ws – 在虛構主機中創立別號目次

今彩539包牌6碼中獎金額

電競運彩抽獎
我在查問
here,here,六合彩玩法规则here,here以及
here之前,先扣問這個成績.我猜我的搜刮技巧很弱.

我使用的是WampServer版本2.2e.我有必要,我必要一個虛構主機內的虛構路徑.讓線上麻將賭博我說兩個客人,我有.
主虛構主機(Localhost)

NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot “大眾C:/Wamp/www”大眾
</VirtualHost>

我的Apps虛構主機

<VirtualHost *:80>
ServerName apps.ptrl
DocumentRoot “大眾C:/Wamp/vhosts/ptrl/apps”大眾
ErrorLog 公眾logs/apps-ptrl-error.log”大眾
CustomLog 公眾logs/apps-ptrl-access.log”大眾 common
<Directory “大眾C:/Wamp/vhosts/ptrl/apps公眾>
allow from all
order allow,deny
AllowOverride All
</Directory>
DirectoryIndex index.html index.htm index.php
</VirtualHost>

我的博客虛構主機

<VirtualHost *:80>
ServerName blog.praveen-kumar.ptrl
DocumentRoot “大眾C:/Wamp/vhosts/ptrl/praveen-kumar/blog公眾
ErrorLog “大眾logs/praveen-kumar-ptrl-error.log”大眾
CustomLog “大眾logs/praveen-kumar-ptrl-access.log公眾 common
<Directory 公眾C:/Wamp/vhosts/ptrl/praveen-kumar/blog”大眾>
allow from all
order allow,deny
AllowOverride All
</Directory>
DirectoryIndex index.html index.htm index.php
</VirtualHost>

我目前的要求是讓http://apps.ptrl/blog/以及http://blog.praveen-kumar.ptrl/應當是統一個目次.我想到的一件事是將運用文件夾中的博客文件夾挪移,然則它與Git以及其余器材毗鄰在一路,是以弗成能挪移文件夾.
以是,我想經由過程這類方式創立VirtualHost的別號:

<VirtualHost *:80>
ServerName apps.ptrl
DocumentRoot 公眾C:/Wamp/vhosts/ptrl/apps”大眾
ErrorLog “大眾logs/apps-ptrl-error.log”大眾
CustomLog 公眾logs/apps-ptrl-access.log”大眾 common
<Directory 公眾C:/Wamp/vhosts/ptrl/apps”大眾>
allow from all
order allow,deny
AllowOverride All
</Directory>
DirectoryIndex index.html index.htm index.php

# The alias to the blog!
Alias /blog “大眾C:/Wamp/vhosts/ptrl/praveen-kumar/blog公眾
<Directory “大眾C:/Wamp/vhosts/ptrl/praveen-kumar/blog”大眾>
allow from all
order allow,deny
AllowOverride All
</Directory>
</VirtualHost>

然則當我測驗考試走訪http://apps.ptrl/blog時,我收到一個過錯403禁止頁面.
我做精確的事嗎?若是您必要查望走訪日記以及過錯日記,那末它們在這里:

# Access Log
127.0.0.1 – – [14/Oct/2012:09:53:11 +0530] “大眾GET /blog HTTP/1.1″大眾 403 206
127.0.0.1 – – [14/Oct/2012:09:53:11 +0530] “大眾GET /favicon.ico HTTP/1.1″大眾 404 209
127.0.0.1 – – [14/Oct/2012:09:53:53 +0530] “大眾GET / HTTP/1.1公眾 200 6935
127.0.0.1 – – [14/Oct/2012:09:53:53 +0530] “大眾GET /app/blog/thumb.png HTTP/1.1″大眾 404線上麻將現金 216
# Error Log
[Sun Oct 14 09:53:11 2012] [error] [client 127.0.0.1] client denied by server configuration: C:/Wamp/vhosts/ptrl/praveen-kumar/blog
[Sun Oct 14 09:53:11 2012] [error] [client 127.0.0.1] File does not exist: C:/Wamp/vhosts/ptrl/apps/favicon.ico
[Sun Oct 14 09:53:53 2012] [error] [client 127.0.0.1] File does not exist: C:/Wamp/vhosts/ptrl/apps/app/blog,referer: http://apps.ptrl/

守候著一些輔助.若是必要,我預備電競運彩lol供應更多的信息.
更新#1:依據felipsmartins給出的申明變動了VirtualHosts聲明:

<VirtualHost *:80>
ServerName apps.ptrl
DocumentRoot “大眾C:/Wamp/vhosts/ptrl/apps公眾
ErrorLog “大眾logs/apps-ptrl-error.log”大眾
CustomLog “大眾logs/apps-ptrl-access.log”大眾 common
# The alias to the blog!
Alias /blog 公眾C:/Wamp/vhosts/ptrl/praveen-kumar/blog公眾
<Directory “大眾C:/Wamp/vhosts/ptrl/praveen-kumar/blog”大眾>
allow from all
order allow,deny
AllowOverride All
</Directory>
<Directory “大眾C:/Wamp/vhosts/ptrl/apps公眾>
allow from all
order allow,deny
AllowOverride All
</Directory>
DirectoryIndex index.html index.htm index.php
</VirtualHost>

更新#2:另一個成績:
我可以走訪該網站.物理鏈接目前正在事情.即,我可以關上http://apps.ptrl/blog/index.php,但不克不及http://apps.ptrl/blog/view-1.ptf,它被轉換為http://apps.ptrl/ ?博客/ index.php頁面=視圖以及ID = 1.任何辦理方案?

請注重,若是要在
DocumentRoot以外的目次中創立
Alias,則可能必要明確許可走訪方針目次:

<VirtualHost *:80>
ServerName apps.ptrl
DocumentRoot 公眾C:/Wamp/vhosts/ptrl/apps公眾
ErrorLog 公眾logs/apps-ptrl-error.log公眾
CustomLog “大眾logs/apps-ptrl-access.log”大眾 common

# Puts here,before Directory directive 🙂
Alias /blog “大眾C:/Wamp/vhosts/ptrl/praveen-kumar/blog”大眾

<Directory 公眾C:/Wamp/vhosts/ptrl/apps公眾>
allow from all
order allow,deny
AllowOverride All
</Directory>
</VirtualHost>

還要注重,縱然對不區別巨細寫的文件體系,URL路徑(第一個體名部門)也是區別巨細寫的.
另外,從C:/ Wamp / vhosts / ptrl / praveen-kumar / blog目次反省權限.
參考
> Apache Module mod_alias> Apache Virtual Host

【免責聲明】本站內容轉載自互聯網,其相關談吐僅代表作者小我私家概念盡非權勢巨子,不代表本站態度。如您發明內容存在版權成績,請提交相關鏈接至郵箱:,咱們將實時予以處置。