[GH-ISSUE #156] Subdomain proxy -> log.io spams get socket.io #127

Open
opened 2026-02-26 05:31:24 +03:00 by kerem · 1 comment
Owner

Originally created by @rjwestman on GitHub (May 17, 2015).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/156

When I access log.io using example.com:28778 everything works normally.
When redirecting using a VirtualHost log.io spams the following get to apache:


xxx.xxx.xxx.xx - - [16/May/2015:14:09:32 +0200] "GET /socket.io/1/xhr-polling/qHi9If0rVuPfT7LC_nWS?t=1431778171345 HTTP/1.1" 200 482 "https://logio.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.5.17 (KHTML, like Gecko) Version/8.0.5 Safari/600.5.17"


My VirtualHost configuration looks like this:


102 ###################################  
103 #       Log.io        #  
104 ###################################  
105   
106 <VirtualHost *:80>  
107     ServerName logio.example.com  
108     Redirect permanent / https://logio.example.com/  
109 </VirtualHost>  
110   
111 <VirtualHost *:443>  
112     ProxyPreserveHost On  
113     ProxyRequests Off  
114     SSLProxyEngine On  
115     SSLEngine On  
116     SSLCertificateFile /etc/ssl/servercerts/server.crt  
117     SSLCertificateKeyFile /etc/ssl/servercerts/server.key  
118     ServerName logio.example.com  
119     ProxyPass / https://localhost:28778/  
120     ProxypassReverse / https://localhost:28778/  
121 </VirtualHost>

Does anyone know whats going on? Do i need some kind of mod_rewrite?

Originally created by @rjwestman on GitHub (May 17, 2015). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/156 When I access log.io using `example.com:28778` everything works normally. When redirecting using a VirtualHost log.io spams the following get to apache: --- xxx.xxx.xxx.xx - - [16/May/2015:14:09:32 +0200] "GET /socket.io/1/xhr-polling/qHi9If0rVuPfT7LC_nWS?t=1431778171345 HTTP/1.1" 200 482 "https://logio.example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.5.17 (KHTML, like Gecko) Version/8.0.5 Safari/600.5.17" --- My VirtualHost configuration looks like this: --- ``` 102 ################################### 103 # Log.io # 104 ################################### 105 106 <VirtualHost *:80> 107 ServerName logio.example.com 108 Redirect permanent / https://logio.example.com/ 109 </VirtualHost> 110 111 <VirtualHost *:443> 112 ProxyPreserveHost On 113 ProxyRequests Off 114 SSLProxyEngine On 115 SSLEngine On 116 SSLCertificateFile /etc/ssl/servercerts/server.crt 117 SSLCertificateKeyFile /etc/ssl/servercerts/server.key 118 ServerName logio.example.com 119 ProxyPass / https://localhost:28778/ 120 ProxypassReverse / https://localhost:28778/ 121 </VirtualHost> ``` --- Does anyone know whats going on? Do i need some kind of mod_rewrite?
Author
Owner

@hanneshal commented on GitHub (May 17, 2015):

Jep. It seems that your client used the XHR Fallback and not the websockets to update the data. Can you post the output of the dev tools? Is there any 404 or something?

<!-- gh-comment-id:102819408 --> @hanneshal commented on GitHub (May 17, 2015): Jep. It seems that your client used the XHR Fallback and not the websockets to update the data. Can you post the output of the dev tools? Is there any 404 or something?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#127
No description provided.