US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > BILLmanager > General questions


Reply
 
Thread Tools
Old 12-09-2016, 11:28 PM   #1
Junior Member
 
Join Date: May 2016
Posts: 26
Trax is on a distinguished road
Default how to point to a domain

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
Trax is offline   Reply With Quote
Old 12-12-2016, 03:58 AM   #2
ISPsystem team
 
Join Date: Jul 2014
Posts: 443
ksenya is on a distinguished road
Default

Hello Trax,

in order to configure the billing address, please, complete the steps descrbed in this article
ksenya is offline   Reply With Quote
Old 12-13-2016, 01:36 AM   #3
Junior Member
 
Join Date: May 2016
Posts: 26
Trax is on a distinguished road
Default

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;
 	}
}
How would i place the code correctly?

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;
}
Thanks
Trax is offline   Reply With Quote
Old 12-13-2016, 05:53 AM   #4
ISPsystem team
 
Join Date: Jun 2013
Posts: 233
fly is on a distinguished road
Default

Hello,

Did you change ip address from 172.31.223.13 to ip of your server? Also ihttpd can be started on 443 port and doesn't let nginx start.

And what exactly error did you get?
fly is offline   Reply With Quote
Old 12-13-2016, 05:58 AM   #5
ISPsystem team
 
Join Date: Jun 2013
Posts: 233
fly is on a distinguished road
Default

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
fly is offline   Reply With Quote
Old 12-13-2016, 12:17 PM   #6
Junior Member
 
Join Date: May 2016
Posts: 26
Trax is on a distinguished road
Default

Quote:
Originally Posted by fly View Post
Hello,

Did you change ip address from 172.31.223.13 to ip of your server? Also ihttpd can be started on 443 port and doesn't let nginx start.

And what exactly error did you get?
Yes i changed the ip.

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.
Trax is offline   Reply With Quote
Old 12-13-2016, 01:06 PM   #7
Junior Member
 
Join Date: May 2016
Posts: 26
Trax is on a distinguished road
Default

Quote:
Originally Posted by fly View Post
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
Yes, i have just done this which works however i want to pass the A records through Cloudflare but when i do i get an 521 Host Error.

Any ideas why?
Trax is offline   Reply With Quote
Old 12-14-2016, 07:42 AM   #8
ISPsystem team
 
Join Date: Jun 2013
Posts: 233
fly is on a distinguished road
Default

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.
fly is offline   Reply With Quote
Old 12-15-2016, 10:16 PM   #9
Junior Member
 
Join Date: May 2016
Posts: 26
Trax is on a distinguished road
Default

Ok, i have managed to get the billmanager to work on the url i want, i now need to figure out how to install an ssl so i can accept paypal payments.

Any ideas how?

Ps Billmanager is installed on it's own with no control panel.
Trax is offline   Reply With Quote
Old 12-16-2016, 05:49 AM   #10
ISPsystem team
 
Join Date: Jul 2014
Posts: 443
ksenya is on a distinguished road
Default

In order to install SSL-certificate, you will need to configure the file as described here

certkey <path to the file key of the SSL-certificate>
cert <path to the SSL-certificate's file>
ksenya is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:40 PM.