my first virtualhost

0

Hello very good for all I have always tried to mount a virtual host and it always gives me error Below I will place the contents of my htaccess to see if any one tells me what is wrong in the log error I get VirtualHost not allowed here It should be noted that I do not change the routes of the error log, transferlog or DocumentRoot

<VirtualHost *:80>
DocumentRoot C:\Bitnami\wampstack-7.1.17-0\apache2\htdocs\public
ServerAdmin [email protected]
ServerName mivhost.com
ErrorLog error_log
TransferLog access_log

</VirtualHost>
    
asked by Israel David Villarroel Moreno 14.09.2018 в 20:46
source

1 answer

0
<VirtualHost *:80>

ServerName sinave.localhost

ServerAdmin webmaster@localhost
DocumentRoot /home/user/proyecto/web
 <Directory /home/user/proyecto/web/ > 
            Options FollowSymLinks MultiViews 
            AllowOverride all 
            Require all granted
    #Order allow,deny 
            allow from all 
    </Directory> 


LogLevel warn

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

The DocumenteRoot goes the route to your project where you have your index.php you must also modify the hthost so that when entering the address sinave.localhost respond to your localhost

    
answered by 14.09.2018 в 21:04