Raised This Month: $49 Target: $400

Issue .htacess for web panel 2.0

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Senior Member
Join Date: Jun 2009
Location: Hong Kong
Old 08-27-2016 , 09:42   .htacess for web panel 2.0
Reply With Quote #1

I have a xampp server running on my windows machine
recently trying to upgrade the store webpanel to 2.0
however, in the installation instruction
HTML Code:
Point the http root dir to the /public folder or Setup a .htaccess file that redirects all request to public and prevents access all other folders and the .env file. Read this and google, there are a lot of tutorials .(If you dont do that, everyone can get your db credentials)
After hours of googling, i still cant figure out how to do this
my apache server's root dir is c:\xampp\htdocs
and my store webpanel is c:\xampp\htdocs\store
could anyone help me to setup the .htacess file?
many thanks
Founder of Reachhl2.com from HK
6 years of srcds exp
Please feel free to ask me question about srcds

and MORE...
hkkelvin1995 is offline
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
Arrow768 is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 07:15.

Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode