2011-10-18 9 views
0

サイトを稼働させることができません。仮想ホストファイルに誤りがあります。Ubutu(10.04.02)

このVHファイルは、a2ensiteとreloadで作成されました。VHファイル名はbemanningstockholm.nu ほとんど同じexaktのVHファイルで動作し、そのドメインが動作します。

DocumentRootにフォルダを作成し、スペルミスを確認してください。

現時点で何が間違っているのか分かりません。

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    ServerName bemanningstockholm.nu 

    DocumentRoot /var/www/bemanningstockholm.nu/htdocs 
    <Directory /> 
      Options FollowSymLinks 
      AllowOverride None 
    </Directory> 
    <Directory /var/www/bemanningstockholm.nu/htdocs> 
      Options Indexes FollowSymLinks MultiViews 
      AllowOverride all 
      Order allow,deny 
      allow from all 
    </Directory> 

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ 
    <Directory "/usr/lib/cgi-bin"> 
      AllowOverride None 
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch 
      Order allow,deny 
      Allow from all 
    </Directory> 

    ErrorLog /var/log/apache2/error.log 

    # Possible values include: debug, info, notice, warn, error, crit, 
    # alert, emerg. 
    LogLevel warn 

    CustomLog /var/log/apache2/access.log combined 
    </VirtualHost> 
    <VirtualHost *:80> 
     ServerName bemanningstockholm.nu 
     ServerAlias www.bemanningstockholm.nu 
    </VirtualHost> 
+0

あなたのApacheの 'error'と' access'ログには何がありますか? – user973254

+0

pastebin.com/FYngWpeq、あなたのコメントを助けてくれてありがとうございました! –

+0

アクセスログdosen'tは多くと言っています –

答えて

0

私はあなたが持っていると思う:二回

ServerName bemanningstockholm.nu 

+0

試行してみてください。 –

+0

同じサーバー名の同じポートに対して同じ仮想ホストを定義しています。 – user45949

+0

ええ、最後の部分を削除してもうまくいきませんでした。( –

関連する問題