Первая фиксация (вторая часть)
This commit is contained in:
4
mirzaev/skillparts/system/web/.htaccess
Normal file
4
mirzaev/skillparts/system/web/.htaccess
Normal file
@@ -0,0 +1,4 @@
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule . index.php [L]
|
BIN
mirzaev/skillparts/system/web/favicon.ico
Normal file
BIN
mirzaev/skillparts/system/web/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 B |
16
mirzaev/skillparts/system/web/index-test.php
Normal file
16
mirzaev/skillparts/system/web/index-test.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
// NOTE: Make sure this file is not accessible when deployed to production
|
||||
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
|
||||
die('You are not allowed to access this file.');
|
||||
}
|
||||
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
|
||||
|
||||
$config = require __DIR__ . '/../config/test.php';
|
||||
|
||||
(new yii\web\Application($config))->run();
|
12
mirzaev/skillparts/system/web/index.php
Normal file
12
mirzaev/skillparts/system/web/index.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
// comment out the following two lines when deployed to production
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
defined('YII_ENV') or define('YII_ENV', 'dev');
|
||||
|
||||
require __DIR__ . '/../../../../vendor/autoload.php';
|
||||
require __DIR__ . '/../../../../vendor/yiisoft/yii2/Yii.php';
|
||||
|
||||
$config = require __DIR__ . '/../config/web.php';
|
||||
|
||||
(new yii\web\Application($config))->run();
|
2
mirzaev/skillparts/system/web/robots.txt
Normal file
2
mirzaev/skillparts/system/web/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
Reference in New Issue
Block a user