Problems with New XAMPP security concept [SOLVED]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problems with New XAMPP security concept [SOLVED]

Postby mister256 » 29. March 2012 02:58

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
mister256
 
Posts: 4
Joined: 29. March 2012 02:53
Operating System: windows 7

Re: Problems with New XAMPP security concept:

Postby Sharley » 29. March 2012 03:58

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?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Problems with New XAMPP security concept:

Postby mister256 » 29. March 2012 04:07

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".
mister256
 
Posts: 4
Joined: 29. March 2012 02:53
Operating System: windows 7

Re: Problems with New XAMPP security concept:

Postby Sharley » 29. March 2012 04:30

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Problems with New XAMPP security concept:

Postby mister256 » 29. March 2012 14:57

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
mister256
 
Posts: 4
Joined: 29. March 2012 02:53
Operating System: windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 126 guests