AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-84949

Sergiks's questions

Martin Hope
Sergiks
Asked: 2014-01-13 13:02:40 +0800 CST

如何设置 nginx 和 fastcgi 以在子文件夹中运行 Laravel?

  • 3

我正在单个域的子文件夹下设置多个 Laravel 应用程序(社交网络应用程序,需要 https,单个证书)。

无法弄清楚如何编写 nginx 配置以将 HTTP 请求映射/app1/到 Laravel 安装/var/www/other_folder/public/

这是配置测试的最新迭代。调试日志被省略。Laravel 根位置 /app1/ 有效,但路由映射 ( /app1/api/method/) 无效。请帮助,如何调试 nginx 如何逐步处理请求(调试日志不是那么解释),或者给我一个提示如何将子文件夹映射/app1/...到index.phpLaravel。

server {
    listen      80;
    server_name  apps.mydomain.com;
    root    /var/www/apps.mydomain.com/docs;

    location /  {
        index   index.html index.php;
    }

    location /app1    {
        alias   /var/www/other_folder/public;
        index   index.php   index.html;
        try_files   $uri  $uri/ /app1/index.php$is_args$args /app1/index.php?$query_string;
    }

    location ~ /app1/.+\.php$ {
        rewrite ^/app1/(.*)$  /$1  break;
        include /etc/nginx/fastcgi.conf;
        fastcgi_param    SCRIPT_FILENAME    /var/www/other_folder/public$fastcgi_script_name;

        fastcgi_index  index.php;
        fastcgi_pass php;

        #   Database access parameters
        fastcgi_param   DB_HOST "localhost";
        fastcgi_param   DB_USER "apps";
        fastcgi_param   DB_PASS "xxxxxxxx";
        fastcgi_param   DB_NAME "app1";
    }

    # Other locations skipped
    include /etc/nginx/global/php.conf; # other php scripts
}
nginx
  • 2 个回答
  • 11723 Views
Martin Hope
Sergiks
Asked: 2012-07-05 02:41:04 +0800 CST

识别切断某个端口的路由器

  • 5

有没有办法确定我和某些服务器之间的哪个特定路由器阻止了某个端口上的连接?

我在泰国的一家酒店,他们最近更改了设备的一些设置,现在我无法通过 SSH / 端口 22 访问我在欧洲和美国的任何服务器。更传统的端口,如 80 或 21 是开放的。

traceroute命令在中间显示每个特定的路由器。但是有没有办法识别过滤掉端口 22 的呢?

firewall routing networking network-protocols
  • 3 个回答
  • 3402 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve