Fillip, hello! What to do with these two files from the folder "do_not_upload"?
Fillip, привет! Что делать с этими двумя файлами из папки "do_not_upload"?
1.
nginx.conf
Code:
location ~* \.(png|jpg|jpeg|gif|ico)$
{
expires 30d;
log_not_found off;
}
location /
{
try_files $uri $uri/ /dbseo.php;
}
location ~ ^((?!dbseo).)*\.php$
{
rewrite ^/(.*)$ /dbseo.php last;
}
location ~* \.(php)$
{
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
}
2.
web.config
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" enabled="true" stopProcessing="true">
<match url="^((archive/)?(.*\.php(/.*)?))$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" negate="true" pattern="(admincp/|dbseocp/|modcp/|cron|vbseo_sitemap)" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="dbseo.php" appendQueryString="true" />
</rule>
<rule name="Rewrite All" enabled="true" stopProcessing="true">
<match url="^.*$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" negate="true" pattern="/(admincp|dbseocp|modcp|clientscript|cpstyles|images)/" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="dbseo.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>