Vapor: Handle HTTPS requests? - swift

I have a VPS (Ubuntu 14.04) with Apache2, Swift 3.1.1 and Vapor installed. I want to receive client side requests to my Vapor-Built-Service via HTTPS protocol (on port 8443 for example). I didn't find any newbie helper document to do this, so please help me.
Thanks.

After a lot of searching I found the answer:
1. You need to install Apache or Nginx on your VPS. Here I assume that the reader uses Apache. But for more info on installing Apache server on Ubuntu 14.04 you can take a look at here.
2. The next thing you need to do is to make Apache work with SSL (or HTTPS protocol). You can find a complete guide here.
3. Now it's time to set the Apache server as a reverse proxy server. You can find a good guide to do that here and here. don't forget to put the reverse-proxy-config-code at port 443 related part.
Update:
There is also another way which you can configure the Vapor directly. Take a look at here.

Related

How to sequence an webserver like nodejs or kestrel in app-v?

i need to have a webserver in an app-v container.
I could not find examples how to sequence and configure a webserver with app-v.
Are there examples available for sequencing e.g. nodejs or even .net core webserver kestrel?
Thank you for the help.
Simon
Never seen a web server packaged with app-v, but I've used app-v seldom, so I may be wrong.
Solutions like Docker are much more suitable for web apps virtualization.

haproxy and keepalived on ec2

I read about using haproxy and keepalived to avoid spof for haproxy. Is it possible to do this in ec2?
Say I have 2 instances. Each with haproxy and keepalived installed. The VIP shall be aws elastic IP.
In theory this should be possible, there are blog posts dotted around with instructions on how to do it. However I have been trying to test this over the past few days but not had any luck with it.
Amazon blocks multicast on EC2 (Classic) so the primary communication method for Keepalived will not work. You need to install the latest version (at time of writing this is 1.2.13) which has unicast support built in. This should allow you to bypass the multicast restrictions that Amazon puts in place. I think the version of the keepalived package is 1.2.7 in the repos (yum install keepalived) which does not have the unicast patch included..
You should be able to use wget to download the latest TAR, unpackage it and build it from source (./configure prefix=/, make, make install). Make sure you have the GCC package and openssl-devel package installed before trying to configure as it will fail with errors otherwise.
If I get it working in the meantime I will come back and put a link to my blog with the exact steps needed :)

Install wowza Media server on my webserver

i was installed wowza media server on my local pc (Ubuntu 13.04). and i was streamed correctly. but now i want to install wowza media server on my web server (linux). please tell any one how to install this media server on my hosting webserver and how to streaming there
Installing Wowza Media Server on your web server will be very similar to what you have already done on your local PC. If you plan to do HTTP adaptive streaming (Apple HLS, Adobe HDS, Microsoft Smooth Streaming, or MPEG DASH) from Wowza, then you just need to make sure that you do not run into a port 80 conflict with your web server. You would do this by either specifying a different HTTP port for Wowza (e.g., port 8080), or better yet, by using a separate IP address on the Web server for Wowza and then still using port 80 for both the web server and Wowza to ensure your content flows across most firewalls.
If you need more detailed help, just send email to support#wowza.com. Someone usually replies within a day.
-Chris
There is a script that installs the Wowza automatically. It works well for Centos OS, I don't know about Ubuntu support. Check this tutorial in this link!, it may help you. At least, it worked for me.
Check out this link. It guides you through the basic setup process. I recommend you install Ubuntu 12.04 LTS which is going to be supported till 2017. Also install open-ssh server, Apache2 web server, MySQL web server and PHP.

nginx + perl setup guide for windows

I'm looking for a guide, tutorial or advices to just have an nginx webserver working on windows configured with localhost site which can run perl scripts.
I know how to do it with Apache so, please do not answer that. Already got an Apache 2.4 running aside with IIS, properly configured tu run perl-cgi scripts. I'm looking for the nginx solution.
Thanks
The historical answer is to setup a proxy to apache from the nginx side. I would personally prefer a solution based on FCGI

Running Xmpp punjab and twisted on Windows

I installed openfire, punjab, and twisted (with its dependencies) and i have also done all necessary setting for proxy now when i got to http://localhost/httpbind i get "503 Service Unavaliable"
I want to do two things :
Get rid of this error.
And how to know twisted and punjab is running and how to restart it???
did you setup Reverse Proxy on IIS? what version of IIS are you using?
if its IIS7 then follow these instructions to setup Reverse Proxy for HTTPBinding
http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/