我正在使用Nginx服务器和Puma应用服务器来设置Rails 6应用程序。
我希望Nginx web服务器提供静态web文件,而Puma应用服务器将处理动态请求。
我已经安装了 Nginx ,下面是Rails 6应用程序的Nginx配置文件:
upstream railsserver {
server 127.0.0.1:3000;
}
server {
# Replace 'localhost' with your FQDN if you want to use
# your app from remote or if y
我有多个来自nginx负载均衡器的上游服务器:
upstream app {
# Make each client IP address stick to the same server
# See http://nginx.org/en/docs/http/load_balancing.html
ip_hash;
# Use IP addresses: see recommendation at https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
server 1.1.
我已经从我的服务器上的git存储库克隆了我的本地git存储库,我将文件发送到OpenCart安装,并在远程服务器上执行安装。
OpenCart执行数据库安装并在远程服务器上配置config.php文件。
然后我执行git status,它显示为everything is up to date,但远程服务器上的config.php文件是最新的,git无法识别这一点。
拉入不会返回任何内容,当我推送时,我会丢失OpenCart创建的配置文件。
我已经创建了一些具有".php“扩展的Laravel路线,例如
Route::get('/api/send.php', function(){
echo 'Hi There';
});
但是当我打开路由时,它显示了Nginx服务器的404错误.那是Nginx配置
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/laravel/public;
# Add index.php to the list if