Giter Club home page Giter Club logo

yyl2.0's Introduction

1.php.ini开启intl.ddl

2.导入pdm/common_base_table.sql

3.配置图片上传路径app_image/uploads下面

4.初始化配置文件:win下执行init,linux下执行php yii init

5.apache配置rewrite规则,如:

# yyl be
<VirtualHost *:80>
    ServerName be-yyl.tunnel.echomod.cn
    DocumentRoot F:\xampp\htdocs\SC\sc_yyl\backend\web
    <Directory "F:\xampp\htdocs\SC\sc_yyl\backend\web">
        Require all granted
        Allow from all
        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . index.php
    </Directory>
</VirtualHost>

6.nginx配置:

server
    {
        listen 80;
        #listen [::]:80;
        server_name fe-api.otmk.club ;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/ds-dance.otmk.club/frontend/web;

        include other.conf;
        #error_page   404   /404.html;

        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

        include enable-php.conf;

        location / {
        # Redirect everything that isn't a real file to index.php
            if (!-e $request_filename){
              rewrite ^/(.*) /index.php last;
            }
           try_files $uri $uri/ /index.php?$args;
        }

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /.well-known {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/fe-ds.otmk.club.log;
    }

yyl2.0's People

Contributors

chaxiaomao avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.