【问题标题】:How to set the domain name and subdomain name without port number for same ip address?同一个ip地址如何设置不带端口号的域名和子域名?
【发布时间】:2020-01-26 07:26:32
【问题描述】:

我想设置 172.01.03.04:8000 到 example.com 和 172.01.03.04:9000 到 subdomain.example.com

Ubuntu_18.04

Nginx

Laravel 5.5

Need_Help

高级感谢

【问题讨论】:

    标签: laravel ubuntu nginx


    【解决方案1】:

    如果你默认设置 nginx 的 http 那么你会得到它的端口 80 或使用 ssl 像 https 那样设置它会设置端口 443。但是如果你手动设置端口那么你必须在浏览器中使用外部端口。您的问题似乎您正在使用外部端口。所以 1.您可以使用反向代理来使用端口 8000 但在后端端口应该是 80/443 2.如果你的操作系统有,你可以使用软防火墙。

    【讨论】:

    猜你喜欢
    • 2020-01-26
    • 2019-05-31
    • 2013-07-02
    • 2014-08-06
    • 2011-04-04
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多