简体   繁体   中英

Apache - vHost - Forbidden

I am trying to make a vhost that point "*:9090" to a specific directory. I'll explain.

That print below shows it's working the path i want.

在此处输入图片说明

So, I am trying to do "*:9090" point to this path (/wamp/www/root/dev). Below what i tried.

<VirtualHost *:9090>
DocumentRoot "c:/wamp/www/root/dev"

<Directory c:/wamp/www/root/dev>
    Options all
    Allow from all
    AllowOverride All
    Require all granted
</Directory>

And now, below, a print of my result.

在此处输入图片说明

What am i doing wrong?

I had the same issue until I used this:

<Virtualhost *:80 >
    ServerName site.domain.com
    DocumentRoot /path/to/site
    <Directory /path/to/site>
        AllowOverride All
        Require all granted
    </Directory>

    ServerAdmin user@domain.com

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</Virtualhost>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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