Page 1 of 1

Problems with New XAMPP security concept [SOLVED]

PostPosted: 29. March 2012 02:58
by mister256
I have portforwarded my localhost and server is running fine however im stumpped on figuring out how to correct this problem
Access forbidden!
New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

Could someone please give me an example what needs to be edited within this file to make my localhost viewable to others without this error showing...thanks so mucj for your kindness and time helping me

Re: Problems with New XAMPP security concept:

PostPosted: 29. March 2012 03:58
by Sharley
mister256 wrote:Could someone please give me an example what needs to be edited within this file to make my localhost viewable to others without this error showing
Where are these others coming from and what would they be typing in the address bar of their browsers to access your XAMPP PC?

Is it others on the LAN?

Or are these others on the Internet?

Re: Problems with New XAMPP security concept:

PostPosted: 29. March 2012 04:07
by mister256
Sharley wrote:
mister256 wrote:Could someone please give me an example what needs to be edited within this file to make my localhost viewable to others without this error showing
Where are these others coming from and what would they be typing in the address bar of their browsers to access your XAMPP PC?

Is it others on the LAN?

Or are these others on the Internet?


I am allowing users to view my xampp from my pc ip... ill show u and u can try if u like here is the ip http://98.81.47.93/xampp/ also if i add http://98.81.47.93/xampp//index.php im givin the same


Access forbidden!

New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

Re: Problems with New XAMPP security concept:

PostPosted: 29. March 2012 04:30
by Sharley
You do not need to add xampp to the address as that is a protected folder, as you have found out.

Put your files and folders that you want your visitors to view in the htdocs folder.
Delete or rename the index.php and the index.html already in the htdocs folder and replace it with your own index file for example index.html that contains your web site.
Start Apache

Then have your others type in their browser:
http://98.81.47.93/index.html

If your website is in website folder in htdocs then they would type:
http://98.81.47.93/website/index.html

For the security of your PC and your web server do not edit the httpd-xampp.conf file.

Re: Problems with New XAMPP security concept:

PostPosted: 29. March 2012 14:57
by mister256
Sharley wrote:You do not need to add xampp to the address as that is a protected folder, as you have found out.

Put your files and folders that you want your visitors to view in the htdocs folder.
Delete or rename the index.php and the index.html already in the htdocs folder and replace it with your own index file for example index.html that contains your web site.
Start Apache

Then have your others type in their browser:
http://98.81.47.93/index.html

If your website is in website folder in htdocs then they would type:
http://98.81.47.93/website/index.html

For the security of your PC and your web server do not edit the httpd-xampp.conf file.

hey thanks so much this fixed it all and very easily...i appreciate your help friend