Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
project-changning
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • project-changning
  • Wiki
  • develop

Last edited by 王秋石 Jun 30, 2016
Page history
This is an old version of this page. You can view the most recent version or browse the history.

develop

增加配置

nginx

server {
        listen       80;
        server_name changning.dev.pingansec.com;
        index index.html index.htm index.php;
        root  /Users/www/web-php/app-changning;#注意~~~~~
        rewrite . /index.php;


        location ~ .*\.(php|php5)?$ {
            fastcgi_pass   unix:/tmp/php-cgi.sock;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
}

apache

<VirtualHost *:80>
    DocumentRoot e:/wamp/www/web-php/app-finance 
    ServerName changning.dev.pingansec.com
    ServerAlias *.finance.dev.pingansec.com
    <Location />
        AddDefaultCharset utf-8
        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . index.php [L,QSA]
    </Location>
</VirtualHost>
Clone repository
  • api
  • baidu_news
  • crontab
  • develop
  • Home
  • urlsetup