在Apache上编辑httpd.conf

时间:2019-01-15 19:57:31

标签: wordpress apache httpd.conf uwamp

我正在尝试通过编辑 / bin / apache / conf中的 httpd.conf 文件来使我的apache在我的本地网络上可见,以便能够访问我的wordpress网站。 / 并收到Permision错误,但我在Internet上找不到任何清晰的内容。

我正在使用UWAMP 3.1.0,并且必须与代码的这一部分相关:

<VirtualHost *:80>
#UWAMP Generate Virtual Host
    DocumentRoot "F:/UwAmp/www/"
    ServerName "main-serveur"
    Alias "/mysql/" "F:/UwAmp/phpapps/phpmyadmin/"
    Alias "/mysql" "F:/UwAmp/phpapps/phpmyadmin/"
    Alias "/uwamp/" "F:/UwAmp/phpapps/uwamp/"
    Alias "/uwamp" "F:/UwAmp/phpapps/uwamp/"
    <Directory "F:/UwAmp/phpapps/phpmyadmin/">
        AllowOverride All
        Options FollowSymLinks Includes Indexes 
        Require local
    </Directory>
    <Directory "F:/UwAmp/phpapps/uwamp/">
        AllowOverride All
        Options FollowSymLinks Includes Indexes 
        Require local
    </Directory>
    <Directory "F:/UwAmp/www/">
        AllowOverride All
        Options FollowSymLinks Indexes 
        Require local   
    </Directory>

在结尾处更具体:

<Directory "F:/UwAmp/www/">
        AllowOverride All
        Options FollowSymLinks Indexes 
        Require local   
</Directory>

This是输入网站托管IP后得到的。

抱歉问到这么简单但我正在学习

提前谢谢

1 个答案:

答案 0 :(得分:0)

{ONLINE_MODE}

If UwAmp is on Online mode, your website is available for all.
{ONLINE_MODE} will be replaced by :
Order allow,deny
Allow from all

If UwAmp is on Offline mode, your website is available only for your computer.
{ONLINE_MODE} will be replaced by :
Order deny,allow
Allow from 127.0.0.1 localhost