简体   繁体   English

在 apache 上编辑 httpd.conf

[英]editing httpd.conf on apache

I'm trying to make my apache visible on my local network for being able to acces my wordpress site hosted there, by editing httpd.conf file on /bin/apache/conf/ and im getting a Permision Error, but I can't find any clear content on the Internet.我试图通过编辑/bin/apache/conf/上的httpd.conf文件,使我的 apache 在我的本地网络上可见,以便能够访问我在那里托管的 wordpress 站点,并且我收到了权限错误,但我不能在互联网上找到任何明确的内容。

Im using UWAMP 3.1.0 and It must be something related with this part of the code:我使用的是 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>

more concretely at the end:最后更具体地说:

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

This is what I get after entering the IP where the site is hosted.是我输入托管站点的 IP 后得到的结果。

sorry for asking something so simple but I'm learning很抱歉问这么简单的问题,但我正在学习

Thank you in advance先感谢您

{ONLINE_MODE} {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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM