Failed to setup proxy with SSL for gevent socket io server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I am running my gevent socketio server on port 8081.  My django website is running on port 8443 through https which is accessed by user from port 8080.
I want to use proxy SSL connection for socketio server through mod_proxy. Below is what I am trying but when I access socketio URL , it gives me internal server error

Below do not work
my configuration in apache
File : httpd.conf

 <VirtualHost *:8080>  
     ServerName myserver
     Redirect permanent / https://myserver:8443/
 </VirtualHost>

File : conf/extra/httpd-ssl.conf

 Listen 8443
 AddType application/x-x509-ca-cert .crt
 AddType application/x-pkcs7-crl    .crl
 SSLPassPhraseDialog  builtin

 <VirtualHost *:8443>
 DocumentRoot "/nobackup/drokade/Installations/release_test/client"
 ServerName myserver
 ServerSignature On
 ServerAdmin you@xxxxxxxxxxx
 ErrorLog "/nobackup/drokade/Installations/release_test/3rdparty/apache/logs/error_log"
 TransferLog "/nobackup/drokade/Installations/release_test/3rdparty/apache/logs/access_log"
 SSLEngine on
 SSLProtocol all -SSLv2
 SSLCipherSuite RC4-SHA:RC4-MD5:HIGH:MEDIUM:!ADH:!DSS:!SSLv2:+3DES
 SSLHonorCipherOrder on
 SSLCertificateFile "/nobackup/drokade/Installations/release_test/server.crt"
 SSLCertificateKeyFile "/nobackup/drokade/Installations/release_test/server.key"
 <FilesMatch "\.(cgi|shtml|phtml|php)$">
     SSLOptions +StdEnvVars
 </FilesMatch>
 <Directory "/nobackup/drokade/Installations/release_test/3rdparty/apache/cgi-bin">
     SSLOptions +StdEnvVars
 </Directory>
 BrowserMatch ".*MSIE.*" \
   nokeepalive ssl-unclean-shutdown \
   downgrade-1.0 force-response-1.0
 CustomLog "/nobackup/drokade/Installations/release_test/3rdparty/apache/logs/ssl_request_log" \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"


 SSLProxyEngine On
 ProxyRequests off
 <Proxy *>
     Order deny,allow
     Allow from all
 </Proxy>

 ProxyPass /socket.io http://myserver:8081/ retry=0
 ProxyPassReverse /socket.io http://myserver:8081/
 ProxyPreserveHost on
 ProxyTimeout 1200

 </VirtualHost>


below is how I am starting my gevent socket server.

     hkeyfile=intracer_root_dir+os.path.sep+'server.key'
     hcertfile=intracer_root_dir+os.path.sep+'server.crt'

    # Loop forever for the events
     sio_server = SocketIOServer(
  (myserver,8081), MyApp(),
  policy_server=False,).serve_forever()

Also below is how I am accessing the URL in the HTML page

 var sock_url="http://myserver:8080";
 socket = io.connect(sock_url);

--

Deepak Rokade


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux