2016-11-26 7 views
0

私はWAMP 3.06を使用しています。私は「C:/ wamp64/www /のwebagenda」でホストされているウェブサイト持って、私は「http://cloudappoint.myvnc.com」を使用してリモートサイトにアクセスしようとするとWAMP 3.06、仮想ホストへのディレクトリが壊れていますか?

を、私が取得:

Forbidden 

You don't have permission to access /webagenda on this server. 
Apache/2.4.23 (Win64) PHP/5.6.25 Server at agenda.myvnc.com Port 8000 

私のバーチャルホストファイルは以下のとおりです。 IIは、次の行のコメントを解除場合

# Virtual Hosts 

<VirtualHost *:8000> 
    ServerName localhost 
    DocumentRoot c:/wamp64/www 
    <Directory "c:/wamp64/www/"> 
     Options +Indexes +Includes +FollowSymLinks +MultiViews 
     AllowOverride All 
     Require local 
    </Directory> 
</VirtualHost> 


#if I uncomment the next lines the problem is over 
#<Directory "c:/wamp64/www/webagenda"> 
#Options Indexes FollowSymLinks Includes ExecCGI 
#DirectoryIndex index.php 
#AllowOverride None 
#Require all granted 
#</Directory> 


<VirtualHost *:8000> 
    ServerName cloudappoint 
    ServerAlias cloudappoint.myvnc.com 
    DocumentRoot c:/wamp64/www/webagenda 
    ErrorLog "logs/agenda-error.log" 
    CustomLog "logs/agenda-access.log" common 
    <Directory "c:/wamp64/www/webagenda/"> 
     Options +Indexes +FollowSymLinks +MultiViews 
     DirectoryIndex index.php 
     AllowOverride All 
     Require all granted 
    </Directory> 
</VirtualHost> 

は、あなたが私のコメントからわかるように、問題は終わった:

<Directory "c:/wamp64/www/webagenda"> 
Options Indexes FollowSymLinks Includes ExecCGI 
DirectoryIndex index.php 
AllowOverride None 
Require all granted 
</Directory> 

何が間違っていますか?

答えて

-1

<VirtualHost>ブロックからブロック<Directory>を移動すると、アクセスが許可される場合は、<VirtualHost>の定義に問題があることを正当な前提としています。

は、私はあなたの定義でこの変更を試みることをお勧めでき

<VirtualHost *:8000> 

    ServerName cloudappoint.myvnc.com   <--change 
    ServerAlias www.cloudappoint.myvnc.com  <--change 

    DocumentRoot c:/wamp64/www/webagenda 
    ErrorLog "logs/agenda-error.log" 
    CustomLog "logs/agenda-access.log" common 
    <Directory "c:/wamp64/www/webagenda/"> 
     Options +Indexes +FollowSymLinks +MultiViews 
     DirectoryIndex index.php 
     AllowOverride All 
     Require all granted 
    </Directory> 
</VirtualHost> 

EDIT

私はあなたがサイトにアクセスしようとすると、URLに非標準ポート番号を追加していると仮定しますか?

http://cloudappoint.myvnc.com:8000 

私が追加:私は私がオフラインのページを取得エラーが

The site you have requested is currently unavailable, 
please try back again later. 
+0

を言ってません8000は、たぶん、あなたは 'URLにポート番号を追加するには忘れている:8000' – RiggsFolly

関連する問題