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.
我正在使用 Nginx,但在通过 cPanel 设置网络托管帐户时遇到了困难。每次我在 WHM 中创建一个新帐户时,它都会自动在 vhosts 文件夹 (/etc/nginx/vhosts) 中为域创建配置文件。问题是正在创建的默认配置文件已损坏。例如: *它正在一个不存在的文件夹中创建访问日志。*它没有正确的 PHP 设置。
如何编辑自动创建的默认 vhosts 文件?
查看超过 50 个文件后,构建 vhost 文件(在 cpanel 上)的正确文件是:/scripts/createvhosts.py