Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 AWS Lightsail 的 LAMP 堆栈托管的实例。我在 Godaddy 上也有一个主机名。
$_SERVER['HTTP_HOST'] 返回应用程序运行的 127.0.0.1:8000。无论如何配置Apache以便返回主机名?