disconnect / apache-websocket

Apache WebSocket module
Apache License 2.0
196 stars 46 forks source link

404 error #18

Closed alcarola closed 12 years ago

alcarola commented 12 years ago

Hi!

For a good while I have been trying to install apache-websocket, according to the instructions, but I only get a 404 when I try to go to localhost/echo. The Apache error log in debug mode attached below.

When I open file:///home/username/apache-websocket/examples/client.html in my web browser it only says received error.

root@samurai:/etc/apache2/mods-enabled# apache2 -v
Server version: Apache/2.2.14 (Ubuntu)
Server built:   Mar  5 2012 16:41:39

Thanks for any help, Mikael


[Tue Jun 19 02:01:11 2012] [notice] caught SIGTERM, shutting down [Tue Jun 19 02:01:12 2012] [warn] module websocket_draft76_module is already loaded, skipping PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/ldap.so' - /usr/lib/php5/20090626+lfs/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_pgsql.so' - /usr/lib/php5/20090626+lfs/pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pgsql.so' - /usr/lib/php5/20090626+lfs/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0 [Tue Jun 19 02:01:12 2012] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.15 with Suhosin-Patch proxy_html/3.0.1 configured -- resuming normal operations [Tue Jun 19 02:01:12 2012] [info] Server built: Mar 5 2012 16:41:39 [Tue Jun 19 02:01:12 2012] [debug] prefork.c(1013): AcceptMutex: sysvsem (default: sysvsem) [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 24203 for worker proxy:reverse [Tue Jun 19 02:01:12 2012] [debug] proxyutil.c(1922): proxy: initialized single connection worker 0 in child 24203 for () [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 24204 for worker proxy:reverse [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized [Tue Jun 19 02:01:12 2012] [debug] proxyutil.c(1922): proxy: initialized single connection worker 0 in child 24204 for () [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 24205 for worker proxy:reverse [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized [Tue Jun 19 02:01:12 2012] [debug] proxyutil.c(1922): proxy: initialized single connection worker 0 in child 24205 for () [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 24206 for worker proxy:reverse [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized [Tue Jun 19 02:01:12 2012] [debug] proxyutil.c(1922): proxy: initialized single connection worker 0 in child 24206 for () [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 24207 for worker proxy:reverse [Tue Jun 19 02:01:12 2012] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized [Tue Jun 19 02:01:12 2012] [debug] proxyutil.c(1922): proxy: initialized single connection worker 0 in child 24207 for () [Tue Jun 19 02:02:30 2012] [error] [client 127.0.0.1] File does not exist: /var/www/echo [Tue Jun 19 02:02:30 2012] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 24222 for worker proxy:reverse [Tue Jun 19 02:02:30 2012] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized [Tue Jun 19 02:02:30 2012] [debug] proxyutil.c(1922): proxy: initialized single connection worker 0 in child 24222 for () root@samurai:/etc/apache2/mods-enabled#

alcarola commented 12 years ago

Ok, I got help from another direction and it turned out that I had misunderstood how it was supposed to work completely. (I'm not a programmer.)

I didn't know that I should copy the client.html and increment.html to a folder served by apache and open them in my web browser there, via Apache.

Now it all works perfectly, so thanks a lot!