私は自分のlocalhostで働くWordpress 3.3.1マルチサイト(サブドメイン)を取得しようとしています。しかし、Wordpress vhost用にワイルドカードサブドメインを設定する必要があるようです。アイデアは、my_wordpress.localに行くany_subdomain.my_wordpress.localを持つことです。Mac OS Lion - ワイルドカードサブドメインの仮想ホスト
Mac OS 10.7.3でApache 2.2.22を使用するにはどうすればよいですか?私はまた、/ etc/hostsファイルにwordpress_muを追加した
<VirtualHost *:80>
DocumentRoot "/Users/some_user/Sites/wordpress_mu"
ServerName wordpress_mu
ServerAlias *.wordpress_mu
ServerAdmin [email protected]
# Logging
ErrorLog "logs/wordpress_mu.error_log.log"
CustomLog "logs/wordpress_mu.access_log.log" combined
<Directory "/Users/some_user/Sites/wordpress_mu">
RewriteEngine On
# To allow permalink as specified by wordpress admin interface
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Options FollowSymLinks MultiViews Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Set valid directory pages
DirectoryIndex index.html index.htm index.shtml index.php
:
これは、そのローカルサイトのための私のhttp-vhosts.confファイルで設定した仮想ホストです。
127.0.0.1 wordpress_mu
ありがとうございます。
ありがとうございます。私はdnsmasqを試みます。 – bananaaus
それは動作します!ありがとうございました。 :) – bananaaus