Php LEMP顶部的蒸汽
我有这个服务器运行数字海洋上托管的LEMP。我使用它有两个原因:Php LEMP顶部的蒸汽,php,swift,nginx,vapor,Php,Swift,Nginx,Vapor,我有这个服务器运行数字海洋上托管的LEMP。我使用它有两个原因: 我的个人网站-常规网页,如index.html 我的游戏(应用程序)后端使用PHP,PHPMyAdmin带有SQL表和一些json文件 我想迁移到Vapor。但我对它的工作原理有疑问 当前服务器已经支持https,我不希望它更改。如果我停止我的服务器,我的所有用户都将不知所措 在我测试和开发vapor应用程序时,我需要旧系统(php)保持正常运行和工作,即使vapor应用程序运行在与php后端不同的目录中。-不断来寻找php文件的
location /iOSService/ {
proxy_ignore_client_abort on;
proxy_pass http://localhost:8080/;
proxy_redirect off;
}
此外,如果希望phpmyadmin继续工作,请确保保持以下行:
# Phpmyadmin Configurations
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
# PHPmyadmin configurations ends
最后,要继续提供您的文件,请不要忘记:
location / {
try_files $uri $uri/ =404;
}
(又称虚拟主机)可用于在同一服务器上运行多个不同技术的应用程序。。。搜索: