Nginx only or Nginx(reverse proxy) + Apache [closed] - apache

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 8 years ago.
Improve this question
I just rent a VPS, and I want to install nginx as a server, however, most of the article on the internet is use nginx as a reverse proxy, rather than as a server, what benefit with this configuration?
Is it possible to use 2 nginx (1 as reverse proxy another as server)?
another non-related this topic question, I'm now using cpanel, how can I fully stop apache, because the httpd is always restart after sometimes, thanks.

Nginx works great by itself and will likely be much faster than Apache. It also uses far less resources (RAM, CPU). That being said, Apache brings some goods to the table, namely simplified deployment for some scenarios (and 2.4 has compelling caching features).
Nginx vs Apache is a false dichotomy. Nginx makes Apache better. By all means, put Nginx out front, but don't write off Apache entirely if it suits your needs.

What are you going to do with your Nginx? If you just want a web server you can go with only Nginx, that's fine.

Related

cPanel multiple domains and SSLs under a single account [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 12 months ago.
Improve this question
I have to set a multiple domains under a single cPanel because the they both need to point to the same document root.
I have successfully added the secondary domain under Domains, and I was able able to upload another SSL certificate for this domain.
However, looks like I am only be able to install one SSL certificate at a time, when I tried to install the secondary SSL, the first one automatically stopped working.
How I can configure cPanel to have both SSLs working? or in this case, do I have to use a single SSL that supports multiple domains?
Thanks
If you add each domain as "Addon" under your cPanel, your hosting provider's free SSL- either, Let's Encrypt or cPanel's SSLs should be able to cover EACH addon domain with a different SSL Certificate and they should not interfere with each other.
If you still experience issues with that, I would recommend reaching your hosting provider to check that further for you and let you know how this can be achieved in their environment.
If they lack support, then I would recommend checking out for a managed hosting provider which will take care of this configuration for you.

how can I get common dev ports like 5000 and 8000 to work with tailscale? [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 2 years ago.
Improve this question
I have tailscale up and running on the raspberry pi. Its incredibly easy to use and SSH with.
Just having one problem now, the IP address that it assigns me doesn't share the results of localhost:5000 or localhost:8000 with the other computers on my new tailscale local-type network. However, it shares localhost:80 just fine and of course :22 and the VNC port I guess.
Those pretty common ports for development, and I'm not really versed opening/forwarding/closing ports, which is the whole reason I'm using tailscale.
Can someone point me in the right direction as to how to get these ports to work on my other connected machines?
As it turns out, I was lacking a fundamental understanding of networking. There was nothing for me to change with tailscale or zerotier (or ports/nmap, router, ISP etc).
I had to serve my content on 0.0.0.0 instead of localhost.
This helped me out:
What is the difference between 0.0.0.0, 127.0.0.1 and localhost?

Setting up SSL for many domains (Virtual Hosts) on a single server (IP) [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 7 years ago.
Improve this question
My question is the following: I'm hosting a couple of websites on a web server (Apache on Debian Wheezy) and I want to have ssl on them. Can I have one certificate and use it for every domain or should I have multiple ones? I tried to have one but the problem is that if I first visit example1 with https, then if I try to visit example2 with https, I get the content of the former, while the url is the latter.
What am I doing wrong? What is the best way to have https for every website on the server?
you need SSL certificates for each domain hosted on the box.
you can have selected domains on SSL but would require tweaking the virtual host file.

SSL Certificate: http vs https [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'm about to get an SSL Certificate for my website. In particular, it will be used because I'm switching over to a payment processor which requires it. A few "noob" questions:
1) Will I have to change any code that directs users to http://www.mysite.com to https://www.mysite.com, or will users who go to http://www.mysite.com be automatically re-directed to https://www.mysite.com?
2) I assume that https "slows" things down on a site? If this is the case, can I maintain the http everywhere on my site except when they make a payment to the processor? i.e. http://www.mysite.com/any_old_page.php, while https://www.mysite.com/pay_for_the_stuff.php
Thanks!
No, that won't happen automatically. You will have to change your server configuration to do that.
Yes, it slows things down. How much depends on the cipher suite used for the server, the server software and hardware. You should play around with different TLS cipher suites to see how much. It depends on that (and of the nature of your site) if you should only use TLS on part of your site or all of your site. As for the requirements of the payment processor: ASK!

Limit Bandwidth per Apache Virtual Host [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm going to launch a 2GB Linode VPS to host a couple of Wordpress CMS sites and one based on Yii framework. I planned on using Apache virtualhosts to assign each site it's own webroot on a user's home directory instead of leaving everything in /var/www
Is it possible to limit the bandiwdth allocated to each Apache virtualhost? I was planning on using Debian Squeeze or CentOS for this box. Not that I envision any of the sites maxing out the 4TB of bandwidth allocated from Linode but it just seems like good practice.
I think using a VPS is the best option as none of the sites are particularly large and the cost of using a PaaS seems a bit much for a few simple CMS sites and a lightweight Yii app.
Also - I know this is subjective and somewhat against the rules here - but is Debian particularly easy to use compared to CentOS for a newbie? Linode have an extensive guide on their Wiki about launching and running a CentOS server but I'm sure there are equally as good guides out there in the wild for Debian?
Thanks in advance for any advice :)
There are several modules for Apache to limit the total bandwidth for each website. A well known one is mod_bw. Here are some good tutorials on how to set it up:
http://www.gavinwill.me.uk/2012/09/limit-apache-bandwidth-with-mod_bw/
http://linuxpoison.blogspot.tw/2012/02/setup-and-configure-bandwidth-limiting.html
http://www.pwrusr.com/system-administration/apache-mod_bw-for-virtualhost
Here are the modules that I'm aware of which perform bandwidth limiting:
mod_bw
mod_bandwidth
mod_cband