Custom error page 403

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

Re: Custom error page 403

Postby JJ_Tagy » 02. March 2016 00:44

Ever heard the saying "more than one way to skin a cat"? Same thing. You can define custom error pages and just use the empty page with no issues. You could do one file and then define all the errors to point to that one page if you wish.
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: Custom error page 403

Postby JJ_Tagy » 02. March 2016 02:59

In fact, if you just want to customize or get rid of the bottom part, you can look in /xampp/apache/error/include/bottom.html

Same with the top part in top.html
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: Custom error page 403

Postby marcelofares » 02. March 2016 17:41

JJ_Tagy wrote:In fact, if you just want to customize or get rid of the bottom part, you can look in /xampp/apache/error/include/bottom.html

Same with the top part in top.html


Ok my friend, I'm in the bottom.html file.

I wonder, now, what I have to do in this file to hide those apache information in case of error?

Image
marcelofares
 
Posts: 12
Joined: 28. February 2016 00:09
Operating System: Windows Server 2012

Re: Custom error page 403

Postby JJ_Tagy » 02. March 2016 18:33

You could remove the <address> section.
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: Custom error page 403

Postby marcelofares » 02. March 2016 21:15

JJ_Tagy wrote:You could remove the <address> section.

Hi mate :)

I removed as you told me, I restarted xampp and it did not work, see below:
I purposely typed the wrong address and the page returned this error:

Image
marcelofares
 
Posts: 12
Joined: 28. February 2016 00:09
Operating System: Windows Server 2012

Re: Custom error page 403

Postby marcelofares » 06. March 2016 02:01

No one knows any tips to solve this?
marcelofares
 
Posts: 12
Joined: 28. February 2016 00:09
Operating System: Windows Server 2012

Re: Custom error page 403

Postby JJ_Tagy » 06. March 2016 03:20

I'm not sure what your problem with it might be. To test, I just removed this section from the bottom.html:
Code: Select all
<address>
  <a href="/"><!--#echo var="SERVER_NAME" --></a><br />
  <span><!--#echo var="SERVER_SOFTWARE" --></span>
</address>

Maybe your changes to the other error pages may be the problem. That is probably where your internal server error (500) is coming from. You should revert all your changes and just start with the bottom.html
JJ_Tagy
 
Posts: 678
Joined: 30. January 2012 13:44
Operating System: Windows 10 Pro x64

Re: Custom error page 403

Postby Nobbie » 06. March 2016 11:48

You really MUST NOT go online with Xampp due to your completely missing skills, it is unsafe and not recommended. Dont wonder when your server maybe hacked in future.
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04

Re: Custom error page 403

Postby gsmith » 06. March 2016 22:14

gsmith
 
Posts: 194
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win XP to 2012R2/VS 6,9,11,14

Re: Custom error page 403

Postby marcelofares » 09. March 2016 14:49

Thanks for the tips of all but, as this server is not pubic, I prefer to close a VPN connection to access my internal servers with xampp than use redirection (nat and pat).
marcelofares
 
Posts: 12
Joined: 28. February 2016 00:09
Operating System: Windows Server 2012

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 44 guests