Apply ssl on a pm2 api with apache on linux [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I got a dedicated server for a project(angular/nodejs). I already configured centos web panel and through this, my domain with let's encrypt ssl, frontend and backend api and everything is up and running so far.
The backend api is running through jenkins/pm2 and it's up on my ip:port3333 but I need it to be ssl, so for example, I would need it to be https://api.example.com:3333 otherwise I'm getting this error on my project: This request has been blocked; the content must be served over HTTPS.
If I try https://example.com:3333 or https://subdomain.example.com:3333 i get an ERR_SSL_PROTOCOL_ERROR which i guess it's normal since centos web panel seems to apply only to the main domain.
So, how can I point a domain or subdomain to the service port 3333 and apply an ssl to it? Or if I can't, how should I proceed to get the service running with ssl? Do i really need this config serverside or is it a matter of the app.
Any idea on how to proceed? Not sure what config should I share.
Thanks in advance.

Turns out it was caused by a missconfiguration on my reverse proxy on apache to a custom port.

Related

Ubuntu server can be accessed from two hostnames [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
in our company we have a Ubuntu 16.04.5 server, where we keep our intranet website and some other simple sites. All works good, but we can access the server using two names like - http://server/website/ and http://server1/website/ . I checked all apache2 files and all host files and I did not find anything related to the name server1, only hostname server. Maybe someone can help me figure out where something like this is configured on how to turn it off.
For me this is normal situation. You have configured one site on this machine. But your DNS server have two records for the IP of the machine. And when you reach apache via first hostname you get the site as it is defined. When you reach the machine via second hostname apache check the hosts defined and see there is no special definition for this hostname and serve the request with first configured host.

Is it possible to set up a VPN server on Debian 8 while keeping my web services (php/apache)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I would like to set up a VPN server, however it means ipv4 forwarding. Is it possible to set up a VPN without shutting down web services or should i use 2 separate servers ?
Thanks for reading ;)
Setting up a VPN server should not affect your web services. The only limitation is that you cannot use an HTTP(S) port (80 or 443), which I personally find practical (I have already seen Wi-Fi hotspots blocking all the ports except 80 and 443). However, if you get along with another port, you will do fine.
There is a good article about setting up an OpenVPN server on Debian Wiki (here). I have managed to set up the server using only this article.
Wishing you good luck.

How to point subdomain to an ip and retain domain name [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Given:
a domain w/ gofather: gloriousdomain.com
w/ nameservers pointing to server w/ hostcrocodile
a subdomain: sub.gloriousdomain.com
a server w/ digitalpond and ip: 123.456.78.9
an A-Recordin hostcrocodile pointing sub.gloriousdomain.com -> 123.456.789
How do I make it so that when I enter sub.gloriousdomain.com in my browser it doesn't just reroute me and change my url to 123.456.78.9
cases where it's worked before
wordpress :
when you first set it up, it does the whole route to ip thing
then you finish the setup w/ it asking the subdomain and magically it's fixed
redmine
routes to ip until you type in the subdomain
Interesting facts
When I ping 123.456.78.9 it pings back 123.456.78.9
I thought passenger on top of nginx was doing some work helping the resoloution for redmine and that's why it worked, but to test it I stopped the service and pinged my redmine box
It turns out it was my ISP.
I reset my router thinking perhaps it was caching the page, turns out it was the ISP, they were serving me a cached version.

how to check which dns client is used on an external server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
The issue is that i cannot determine what domain name system external servers use.
I want to be able to spot which kind of domain name system client is a server using without having actually access to it.
I have tried several commands on n map with domain name system searching script, but the result is not clear.
For ports open i can use n map.
Is there a solution for domain name system spotting too ?
There is nothing within the DNS protocol which will do what you are asking for. Which port does not matter as port 53 is the standard DNS port and all DNS server regardless of what software they are running will respond on port 53 and will return data in the same way. Without access to the remote server you would not be able to identify what DNS server software they are running.

Domain name in Node.JS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a VPS on DigitalOcean.
I have a Node.JS and MongoDB application.
Now I want to pin my domain (myapp.com) to my Node.JS app.
Now I can run my app by IP like 192.xxx.xxx.xxx:8080. I want to have this on address myapp.com.
How to do that?
A domain does not point to an app but to a machine, so to start make sure your domain points to your VPS's IP, i guess you can access to DNS settings in your host's interface.
If your app is running on :8080 then http://myapp.com:8080 should then point to your app.
If you want your app to run on the http://myapp.com only (without :8080) you have to either launch the app on port 80 (which is the default http port) or install a reverse proxy that tunnels :80 to :8080.
I personally recommend using a proxy, as you would be able to add other NodeJs apps later, each running on different ports and beeing served through the proxy.
Nginx is used a lot as a reverse proxy for node or ruby applications, and you should find a lot of documentation for it.
Alternatively, to play pure NodeJS, have a look at node-proxy, it should suit your needs very well too.

Resources