Thread: [Issue] .htacess for web panel 2.0
View Single Post
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 08-29-2016 , 16:33   Re: .htacess for web panel 2.0
Reply With Quote #2

In your xampp\apache\conf\extra you have a httpd-vhosts.conf file

Add a new virtual host that points to where you have your webpanel installed


The ServerName directive sais that the webserver will show this page when it gets a request for the specified server name.

Ofc you have to make sure that the request gets to the webserver.
If you dont use a FQDN (as I do for my dev install) you could do this with a entry in the hosts file.

Dont forget to restart your apache after changing the file
PHP Code:
<VirtualHost *>
    
DocumentRoot "F:\XAMPP\htdocs\WebPanel-Core\public"
    
ServerName webpanel-core.local
    
<Directory "F:\XAMPP\htdocs\WebPanel-Core\public">
        
Order allow,deny
        Allow from all
    
</Directory>
</
VirtualHost
__________________
Arrow768 is offline