ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   General questions (http://forum.ispsystem.com//forumdisplay.php?f=22)
-   -   how to point to a domain (http://forum.ispsystem.com//showthread.php?t=2783)

Trax 12-09-2016 11:28 PM

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

ksenya 12-12-2016 03:58 AM

Hello Trax,

in order to configure the billing address, please, complete the steps descrbed in this article

Trax 12-13-2016 01:36 AM

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

fly 12-13-2016 05:53 AM

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 12-13-2016 05:58 AM

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

Trax 12-13-2016 12:17 PM

Quote:

Originally Posted by fly (Post 8238)
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 12-13-2016 01:06 PM

Quote:

Originally Posted by fly (Post 8239)
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?

fly 12-14-2016 07:42 AM

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.

Trax 12-15-2016 10:16 PM

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.

ksenya 12-16-2016 05:49 AM

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>


All times are GMT +2. The time now is 12:21 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.