Я понятия не имею, что мне следует написать в файле конфигурации Nginx, чтобы начать установку WHMCS. Я поместил папку WHMCS из загрузки в var/www/html и переименовал ее в Billing. Мой файл конфигурации находится ниже. В настоящее время, когда я запускаю IP/биллинг/установку (как указано в руководстве по установке причуд), я получаю файл, загружаемый в мой браузер. Пожалуйста, помогите.
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.php index.htm index.nginx-debian.html;
server_name _;
#location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#proxy_pass http://localhost:3000;
#}
# WHMCS CONFIG
# When WHMCS updates, make sure to get the newest configuration at https://hostup.org/blog/whmcs-friendly- ... for-nginx/
location ~ /billing/announcements/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/announcements/$1;
}
location ~ /billing/download/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/download$1;
}
location ~ /billing/knowledgebase/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/knowledgebase/$1;
}
location ~ /billing/store/ssl-certificates/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/store/ssl-certificates/$1;
}
location ~ /billing/store/sitelock/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/store/sitelock/$1;
}
location ~ /billing/store/website-builder/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/store/website-builder/$1;
}
location ~ /billing/store/order/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/store/order/$1;
}
location ~ /billing/cart/domain/renew/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/cart/domain/renew$1;
}
location ~ /billing/account/paymentmethods/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/account/paymentmethods$1;
}
location ~ /billing/password/reset/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/password/reset/$1;
}
location ~ /billing/account/security/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/account/security$1;
}
location ~ /billing/subscription?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/subscription$1;
}
#Social media authorization
location ~ /billing/auth/provider/google_signin/finalize/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=auth/provider/google_signin/finalize$1;
}
#WHMCS ADMIN
location ~ /billing/admin/(addons|apps|search|domains|help\/license|services|setup|utilities\/system\/php-compat)(.*) {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/admin/$1$2 last;
}
location ~ /billing/admin/client/?(.*)/paymethods/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/client/?(.*)/paymethods/$1;
}
location ~ /billing/admin/setup/auth/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/setup/auth/$1;
}
location ~ /billing/admin/client/?(.*)/tickets/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/client/?(.*)/tickets/$1;
}
location ~ /billing/admin/client/?(.*)/invoice/?(.*)/capture/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/client/?(.*)/invoice/?(.*)/capture/$1;
}
location ~ /billing/admin/account/security/two-factor/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/admin/account/security/two-factor/$1;
}
location ~ /billing/admin/search/intellisearch?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/search/intellisearch/$1;
}
# Security Advisory 2020-01-28
location ^~ /vendor/ {
deny all;
return 403;
}
# END WHMCS CONFIG
}
Подробнее здесь: https://stackoverflow.com/questions/745 ... tall-whmcs
Проблема с конфигурацией NGINX для установки WHMCS. ⇐ Php
Кемеровские программисты php общаются здесь
-
Anonymous
1729700766
Anonymous
Я понятия не имею, что мне следует написать в файле конфигурации Nginx, чтобы начать установку WHMCS. Я поместил папку WHMCS из загрузки в var/www/html и переименовал ее в Billing. Мой файл конфигурации находится ниже. В настоящее время, когда я запускаю IP/биллинг/установку (как указано в руководстве по установке причуд), я получаю файл, загружаемый в мой браузер. Пожалуйста, помогите.
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.php index.htm index.nginx-debian.html;
server_name _;
#location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#proxy_pass http://localhost:3000;
#}
# WHMCS CONFIG
# When WHMCS updates, make sure to get the newest configuration at https://hostup.org/blog/whmcs-friendly-urls-configuration-for-nginx/
location ~ /billing/announcements/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/announcements/$1;
}
location ~ /billing/download/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/download$1;
}
location ~ /billing/knowledgebase/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/knowledgebase/$1;
}
location ~ /billing/store/ssl-certificates/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/store/ssl-certificates/$1;
}
location ~ /billing/store/sitelock/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/store/sitelock/$1;
}
location ~ /billing/store/website-builder/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/store/website-builder/$1;
}
location ~ /billing/store/order/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/store/order/$1;
}
location ~ /billing/cart/domain/renew/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/cart/domain/renew$1;
}
location ~ /billing/account/paymentmethods/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/account/paymentmethods$1;
}
location ~ /billing/password/reset/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/password/reset/$1;
}
location ~ /billing/account/security/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/account/security$1;
}
location ~ /billing/subscription?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=/subscription$1;
}
#Social media authorization
location ~ /billing/auth/provider/google_signin/finalize/?(.*)$ {
rewrite ^/(.*)$ /billing/index.php?rp=auth/provider/google_signin/finalize$1;
}
#WHMCS ADMIN
location ~ /billing/admin/(addons|apps|search|domains|help\/license|services|setup|utilities\/system\/php-compat)(.*) {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/admin/$1$2 last;
}
location ~ /billing/admin/client/?(.*)/paymethods/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/client/?(.*)/paymethods/$1;
}
location ~ /billing/admin/setup/auth/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/setup/auth/$1;
}
location ~ /billing/admin/client/?(.*)/tickets/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/client/?(.*)/tickets/$1;
}
location ~ /billing/admin/client/?(.*)/invoice/?(.*)/capture/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/client/?(.*)/invoice/?(.*)/capture/$1;
}
location ~ /billing/admin/account/security/two-factor/?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/admin/account/security/two-factor/$1;
}
location ~ /billing/admin/search/intellisearch?(.*)$ {
rewrite ^/(.*)$ /billing/admin/index.php?rp=/search/intellisearch/$1;
}
# Security Advisory 2020-01-28
location ^~ /vendor/ {
deny all;
return 403;
}
# END WHMCS CONFIG
}
Подробнее здесь: [url]https://stackoverflow.com/questions/74567674/trouble-with-nginx-config-to-install-whmcs[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия