對於我們的業務,我正在使用WAMP構建Wordpress Intranet站點。該網站從服務器上的本地主機工作正常,但如果我從另一臺計算機嘗試它,它會返回一個錯誤。嘗試在本地網絡上的另一臺計算機上使用WAMP訪問Wordpress站點時出錯
使用IP地址(192.168.1.52),我可以在網絡上的其他計算機上成功加載WAMPSERVER主頁,但是當嘗試加載站點(「redms」)時,出現如下所示的錯誤。我是一個新手,我覺得我必須有一個非常簡單的解決方案,我錯過了!
編輯: 的httpd-vhosts.conf
看起來是這樣的:
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName redms
DocumentRoot c:/wamp64/www/redms
<Directory "c:/wamp64/www/redms/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
編輯: 經過一番搜索,我發現我需要添加以下行文件:
define('WP_SITEURL', 'http://192.168.1.52/redms');
define('WP_HOME', 'http://192.168.1.52/redms');
而且我還需要將WordPress中的WordPress Address (URL)
和Site Address (URL)
更改爲:http://192.168.1.52/redms
。
向我們展示'httpd-vhosts.conf'文件請 – RiggsFolly
我已將它添加到問題:) – jm00548