Raised This Month: $32 Target: $400
 8% 

Issue .htacess for web panel 2.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hkkelvin1995
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

hello
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 Hong Kong 🇭🇰
10+ years experience in hosting SCRDS
Best known for our VSH/FF2 server with self-made Bosses, Features, Maps
hkkelvin1995 is offline
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
Reply



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 02:08.


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