很困惑,現在,雖然我覺得我大概瞭解了一下虛擬主機這混淆了我沒有時間結束,我想經過這麼久,我會尋求幫助:PphpMyAdmin的工作時,我關閉某些虛擬主機
我關閉了1個虛擬主機,phpmyadmin將在本地工作,重新打開這個虛擬主機,phpmyadmin結束在這個網頁與我的404網站。有問題的虛擬主機:
<VirtualHost 127.0.0.1>
DocumentRoot /var/www/mayfieldafc/docroot
ServerName mayfieldafc.com
ServerAlias mayfieldafc.local
#CustomLog logs/mayfieldafc-transfer.log combined
#ErrorLog logs/mayfieldafc-error.log
php_value include_path "/usr/share/php:/var/www/mayfieldafc"
php_value error_reporting 2047
php_flag magic_quotes_gpc off
php_flag short_open_tag off
DirectoryIndex index.php index.html
<Directory /var/www/mayfieldafc/docroot>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RewriteEngine on
#RewriteLogLevel 9
#RewriteLog /var/log/mod_rewrite.log
# Dispatcher wiring
RewriteCond %{REQUEST_URI} !dispatch\.php$
RewriteCond /var/www/mayfieldafc/docroot%{REQUEST_FILENAME} !-f
RewriteRule ^(/.*)$ /dispatch.php?url=$1 [L,QSA]
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot /var/www/mayfieldafc/docroot
ServerName assets.mayfieldafc.com
ServerAlias assets-mayfieldafc.local
#CustomLog logs/mayfieldafc-transfer.log combined
#ErrorLog logs/mayfieldafc-error.log
DirectoryIndex index.php index.html
<Directory /var/www/mayfieldafc/docroot>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
如果有人知道虛擬主機和phpMyAdmin的東西我會永遠愛你:d
對不起,這個愚蠢的問題。你用什麼網址連接到你的網頁?你使用的是http://127.0.0.1嗎? – Joe
你的配置中是否有NameVirtualHost設置? – datasage
至於網址:http:// localhost/phpmyadmin /其中phpmyadmin位於我的根文件夾,http://mayfieldafc.local/位於上面的虛擬主機。我沒有關閉所有其他的虛擬主機,目前只運行mayfield虛擬主機。也謝謝推廣回覆傢伙:) –