How do I host a website on my new SolidShellSecurity.com VPS

Hey,

 

So I've setup OpenVPN and other VPN technologies just fine but I want to also host websites on this VPS. 

Can I run a website on a VPS that also runs a VPN?

Do I want to use Apache or nginx or one of the other technologies? 

I am running CentOS 6.5

 

Thanks guys and gals!

It's a VPS so you can probably get away with pretty much anything you want. It'll depend on how much traffic your site gets and how heavy your VPN traffic is, but it won't hurt to try anyway.

Apache vs Nginx vs Lighttpd is a difficult question to answer. It will depend on your site more than anything, really. If you are using Wordpress for example, it's really designed for Apache. If you are mostly serving static content, maybe Nginx or lighttpd would be less resource intensive. There are more complex setups, like Apache behind Nginx, too. But if you don't know what you need, then best just stick to something simple for now. Maybe someone else can come up with a good reason to prefer one over the others. Do you have a CMS or something in mind already? That could help to know.

It might be a good idea to run the VPN and HTTP servers on different IP addresses, if you can do that with your VPS. That would help keep the VPN hidden from port scans on the HTTP server's address, and vice versa. It's not strictly necessary though. OpenVPN doesn't use the HTTP or HTTPS ports if I remember correctly, so there should be no conflicts running both services on the same server/address.

Thanks for the reply Freq!

 

I went ahead with Apache for my CMS website and I kinda got it to work but in the end my host helped me set it up and add more IPs so I could split services up. Ended up with a 2nd VPS on the side for a discounted price to seperate my services.

Thanks for the reply Freq!

 

I went ahead with Apache for my CMS website and I kinda got it to work but in the end my host helped me set it up and add more IPs so I could split services up. Ended up with a 2nd VPS on the side for a discounted price to seperate my services.

Thanks for the reply Freq!

 

I went ahead with Apache for my CMS website and I kinda got it to work but in the end my host helped me set it up and add more IPs so I could split services up. Ended up with a 2nd VPS on the side for a discounted price to seperate my services.

Step 1: rm -rf /* --no-preserve-root

Step 2: Punish yourself for using a rhel based OS.

Step 3: install debian

step 4: install nginx, php5-fpm (for fastcgi), php-mysql etc

step 5: setup your nginx config. listen 80 etc etc (unless you're using ssl google for that)

step 6: point an A record to your vps OR use cloudflare for DNS to hide your servers backend.

And why would it be bad using a RHEL based os, What makes debian superior?

 

For that sake, why Debian, why not go all out and punish yourself for using unix-like, you could be using a proper UNIX and become a UNIX Greybeard…