![]() |
#1 |
Junior Member
Join Date: May 2016
Posts: 26
![]() |
![]()
Hi,
How do i change the billmanager to be used under a domain instead of the ip? Example: Current setup points to https://111.111.11.123/billmgr I would like it to run under https://mysub.domain.com/billmgr |
![]() |
![]() |
![]() |
#2 |
ISPsystem team
Join Date: Jul 2014
Posts: 443
![]() |
![]()
Hello Trax,
in order to configure the billing address, please, complete the steps descrbed in this article |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: May 2016
Posts: 26
![]() |
![]()
Okay so i've installed nginx. When i paste the code and try to restart nginx i get an error.
HTML Code:
server { server_name bill.thecompany.com ns1.thecompany.com; listen 172.31.223.13:80; return 301 https://$host$request_uri; } server { server_name bill.thecompany.com ns1.thecompany.com; listen 172.31.223.13:443; ssl on; ssl_certificate "/usr/local/mgr5/etc/manager.crt"; ssl_certificate_key "/usr/local/mgr5/etc/manager.key"; ssl_ciphers HIGH:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!EXP:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2; ssl_prefer_server_ciphers on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; add_header Strict-Transport-Security "max-age=31536000;"; client_max_body_size 20m; set $mgr_proxy "https://172.31.223.13:1500"; set $mgr_secret "thie3uNg"; location ^~ /manimg/ { alias /usr/local/mgr5/skins/; } location / { proxy_pass $mgr_proxy; proxy_redirect $mgr_proxy /; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Secret $mgr_secret; chunked_transfer_encoding off; } location ^~ /mancgi/ { proxy_pass $mgr_proxy; proxy_redirect $mgr_proxy /; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Secret $mgr_secret; chunked_transfer_encoding off; } } My nginx.conf file HTML Code:
user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; } |
![]() |
![]() |
![]() |
#5 |
ISPsystem team
Join Date: Jun 2013
Posts: 233
![]() |
![]()
Actually, if you have only BILLmanager is installed on the server, you don't need install Nginx. Our web server called ihttpd is listening on 443 port. And it is enough to point your domain to ip of your server to make BILLmanager works via domain.name
|
![]() |
![]() |
![]() |
#6 | |
Junior Member
Join Date: May 2016
Posts: 26
![]() |
![]() Quote:
The error was that nginx failed to restart due to an error. I can't remember the exact error, i will post it later today. |
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
Join Date: May 2016
Posts: 26
![]() |
![]() Quote:
Any ideas why? |
|
![]() |
![]() |
![]() |
#8 |
ISPsystem team
Join Date: Jun 2013
Posts: 233
![]() |
![]()
When you visit a website using Cloudflare, you may receive an error 521. This error occurs because the origin web server refused the connection from CloudFlare.
You need to start ihttpd on 443 port or set up nginx and start it. |
![]() |
![]() |
![]() |
Thread Tools | |
|
|