Home>
About .htaccess description on XREA server

Because php is installed on almost all pages in the site, it was set so that PHP could be executed in a file with extension ".html".

AddType application/x-httpd-php .html

We haven't changed the notation since several years ago, and we haven't touched on other files, including upload editing for the past year, but the following error message suddenly appears. It was.
In addition, the error occurred only from the evening to the morning, and it worked without problems during the day.

Forbidden
You don't have permission to access /.fast-cgi-bin/php53.cgi/index.html on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Tried

I contacted xrea

AddType application/x-httpd-php .html

AddType application/x-httpd-php .html
AddType fcgid-script .html
FCGIWrapper /virtual//public_html/.fast-cgi-bin/php53.fcgi .html
Would you like to comment out and add a note and see what happens?
This is the standard setting for each XREA server, "FastCGI", and it is a setting that allows .html files to be executed with PHP

I received the answer

, but when I ran it, the error content changed and became as follows.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

Change the file name to * .php and remove the description about php from .htaccess and it will work purely.
Since there are about 2500 files, I would like to display it as html if possible.

☆☆☆☆☆☆☆☆
With the resolution, the account information of strangers has been exposed, so it has been changed to some hidden characters in the syntax.

  • Answer # 1

    Is there a syntax error in

    .htaccess?
    There seems to be no error with the contents just presented, but not all of them are presented, and it is not surrounded by code blocks, so the code obtained from the question contents is not 100% reproducible code.

    Since it's a delicate syntax, it can't move easily due to a slight mistake or a blank space. I am also worried about whether the description is allowed by the server.
    It depends on the server, so if it was caused by an answer obtained by inquiring the server side, it would be better to ask the server side.

    If you include good things, you will not be able to make it appear to be working in .html depending on the argument, but it is also necessary to set it with .htaccess, but what is the structure now? I don't know, so don't mention it here.

  • Answer # 2

    If it isHTTP 403that occurs in time, there is the following description in the FAQ, so it may be a malfunction or specification change.
    I think it will be reflected in all users associated with apache of the rental server

      

    On some XREA servers, if there is a large amount of POST access from overseas, there is a setting to temporarily deny it.