私はWamp 2.2を使用しています。編集したconf/extra/httpd-vhosts.conf
はこのファイルを編集してVirtualHostsを追加しましたが、httpd.conf
のコメント行にhttpd-vhosts.confファイルを追加するとWampが再開しません。私が変更を元に戻すとうまくいく。WAMPを持つバーチャルホスト
これは何故ですか?
この私がhttpd-vhost.conf
で使用しているコードです:
<VirtualHost *>
ServerAdmin [email protected]
DocumentRoot "C:/wamp/www" # change this line with your htdocs folder
ServerName localhost
ServerAlias localhost
<Directory "C:/wamp/www">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# WooCommerce Multisite
<VirtualHost dev.lo>
ServerAdmin [email protected]
DocumentRoot "C:/wamp/www/dev"
ServerName dev.lo
ServerAlias dev.lo
<Directory "C:/wamp/www/dev">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
おかげ
ジョージ
が編集
アンドレアス・ハーゲンは私がHTTPD経由でのApacheを実行し、示唆したように。EXE。
DocumentRoot
の最初のエラーは、DocumentRoot
が1つのみを受け入れると、第2パラメータとして使用されたようなコメントが表示されます。
私は警告:[warn] NameVirtualHost *:80 has no VirtualHosts
を得ました。クイック検索を行い、非常に有用な質問が見つかりました - https://serverfault.com/questions/1405/apache-2-startup-warning-namevirtualhost-80-has-no-virtualhosts
cmdを起動するコマンドとは何ですか? – Mamaduka
exeファイルを実行するだけです。それはhttpd.exe –
という名前だと思うが、httpd.exeは私がそれを開くとすぐに閉じるので、エラー通知を得ることはできません。 – Mamaduka