[users@httpd] Special characters in password for mod_dbd
Hello. I have special characters in the password to connect to database from httpd basic authentication using mod_dbd in version 2.4. I use: DBDriver mysql DBDParams host=some_ip,dbname=schema,user=user_name,pass=password_with_special_chars.:)]|&; But httpd does not read it correctly so could not authenticate to mysql. The user and password is correct. How to escape special characters for the password? On httpd 2.2 using DBDriver odbc the same password is interpreted correctly. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Implementing REST API
Hello all! I hope that I am posing my question to a relevant mailing list! I am looking for a solution to implement a RESTful API server. I have tested and examined a bunch of solution and now I think the best solution is to use a trustworthy, reliable, and robust implementation of HTTP protocol such as Apache httpd as HTTP server as base and then add my API handlers for REST commands. I am still looking at Apache httpd's source code and doesn't really know what is the best way to implement a RESTful API that would receive GET/POST/PUT/DELETE, etc. commands with appropriate parameters and then send the results. I am wondering if there is a standard way or similar project that somebody else has done? If not, what would be the best way to implement this? Should I add a new module that handles RESTful APIs or hack into the code and generate the response base on my API when a HTTP command is received and send it through httpd? I appreciate your help in advance, Regards, Danesh Daroui - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Implementing REST API
On 8/19/18 5:48 PM, Danesh Daroui wrote: Hello all! I hope that I am posing my question to a relevant mailing list! I am looking for a solution to implement a RESTful API server. I have tested and examined a bunch of solution and now I think the best solution is to use a trustworthy, reliable, and robust implementation of HTTP protocol such as Apache httpd as HTTP server as base and then add my API handlers for REST commands. I am still looking at Apache httpd's source code and doesn't really know what is the best way to implement a RESTful API that would receive GET/POST/PUT/DELETE, etc. commands with appropriate parameters and then send the results. I am wondering if there is a standard way or similar project that somebody else has done? If not, what would be the best way to implement this? Should I add a new module that handles RESTful APIs or hack into the code and generate the response base on my API when a HTTP command is received and send it through httpd? Generally, one would vector the URL to a script that would parse the full set of HTTP headers, and act accordingly. Take a look at the documentation for how Apache's CGI interface works. You might try looking around for an apache-based implementation of the Atom Publishing Protocol for an example. Miles Fidelman -- In theory, there is no difference between theory and practice. In practice, there is. Yogi Berra - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Apache HTTPD not responding after running for several days
Hi Yann and all, Understood that Apr-1.6.3 had a bug in Solaris, I compiled Apache 2.4.34 with apr-1.6.2 and apr-util-1.6.0 , but the problem still occurred. OS: Solaris 10 and 11 (no problem on Redhat 6.7) Symptom: Upon starting, the HTTPDs initially run fine. After running for several days, HTTPD would stop responding. It wouldn't accept any new connections although the processes are running. In the whole period the incoming traffic volumn is low. When in the "not responding" situation, stopping and then starting the HTTPD would workaround the issue temporarily. The symptoms are: 1. About 5 HTTPD processes are still running (checked by the "ps -ef" command) 2. The TCP port is still being listened (checked by the "netstat -an | grep LISTEN" command) 3. Any new incoming request would result in a connection in SYN_SENT state (checked by "netstat -an") which usually disappears 1 minute later. I'd appreciate your help. Thanks in advance. Regards, Eric On Mon, 13 Aug 2018 at 10:16, Eric . wrote: > Dear Yann, > > Thanks for the info. I'm trying APR 1.6.2 (the previous version) and let's > see whether the problem would occur again. > Thank you. > > Regards, > Eric > > > > On 7 August 2018 at 16:15, Yann Ylavic wrote: > >> Hi, >> >> On Tue, Aug 7, 2018 at 5:57 AM, Eric . wrote: >> > >> > I'm using Apache HTTPD 2.4.29 and 2.4.33 on Solaris 10 and 11. These >> HTTPDs >> > were compiled from source with the latest APR, APR-util and PCRE. >> > Upon starting, the HTTPDs initially run fine. After running for several >> days >> > to 2 weeks, HTTPD would stop responding. It wouldn't accept any new >> > connections although the processes are running. In the whole period the >> > incoming traffic volumn is low. >> > When in the "not responding" situation, stopping and then starting the >> HTTPD >> > would workaround the issue temporarily. >> >> Possibly you are hitting this bug in APR: >> https://bz.apache.org/bugzilla/show_bug.cgi?id=61786 >> It was fixed in: https://svn.apache.org/r1819938 (not in any released >> APR for now) >> A more targeted patch would be: >> >> http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/port.c?r1=1819858&r2=1819857&pathrev=1819858&view=patch >> >> Regards, >> Yann. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> >> >
Re: [users@httpd] Problem setting up ssl
Hi again >From another computer I tried to access the IP address via wget command. See >this output [mahmood@rocks7 ~]$ wget http://w.x.y.z --2018-08-20 10:30:38-- http://w.x.y.z/ Connecting to w.x.y.z:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘index.html’ [ <=> ] 33,229 --.-K/s in 0.009s 2018-08-20 10:30:38 (3.58 MB/s) - ‘index.html’ saved [33229] [mahmood@rocks7 ~]$ wget https://w.x.y.z --2018-08-20 10:30:43-- https://w.x.y.z/ Connecting to w.x.y.z:443... connected. OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol Unable to establish SSL connection. [mahmood@rocks7 ~]$ wget http://w.x.y.z:443 --2018-08-20 10:30:50-- http://w.x.y.z:443/ Connecting to w.x.y.z:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: ‘index.html.1’ [ <=> ] 33,229 --.-K/s in 0.02s 2018-08-20 10:30:50 (1.95 MB/s) - ‘index.html.1’ saved [33229] [mahmood@rocks7 ~]$ Any thought? Regards, Mahmood