Re: [users@httpd] Apache Virtual Host not working properly

2017-12-30 Thread Marat Khalili
> For the second question, for sure it's not the application because I ever use > the same app before but i didn't get the problem [...] Try to set ProxyPreserveHost -- With Best Regards, Marat Khalili - To unsubscribe, e-mail

Re: [users@httpd] Apache Virtual Host not working properly

2017-12-30 Thread Noor Mohammad
For the second question, for sure it's not the application because I ever use the same app before but i didn't get the problem, in fact the application i'm using is Apache Marmotta, there is docker image already so I am using their docker image, http://marmotta.apache.org/installation.html#docker

Re: [users@httpd] Apache Virtual Host not working properly

2017-12-30 Thread Eric Covener
On Sat, Dec 30, 2017 at 3:30 PM, Noor Mohammad wrote: > I have an application running at http://localhost:6512 and a virtual host > definition as follows: > > > ServerName ldpmarmotta.example.com > ProxyPassMatch ^/(.*)$ http://localhost:6512/marmotta/$1 > > I am getting two prob

[users@httpd] Apache Virtual Host not working properly

2017-12-30 Thread Noor Mohammad
I have an application running at http://localhost:6512 and a virtual host definition as follows: ServerName ldpmarmotta.example.com ProxyPassMatch ^/(.*)$ http://localhost:6512/marmotta/$1 I am getting two problems with the above definition: 1. All traffic to this server includin

RE: [users@httpd] Problem with CGI script

2017-12-30 Thread mahmood n
>You need to scope the SetHandler/AddHandler to just the things that >are actually CGI. Check the manual. If you mean this topic (https://wiki.apache.org/httpd/DirectoryAsScript) , I already have read that. But don’t know how to apply that to my case. Currently, I have Options FollowSy

Re: [users@httpd] Problem with CGI script

2017-12-30 Thread Eric Covener
On Sat, Dec 30, 2017 at 9:49 AM, mahmood n wrote: >>Missing SetHandler cgi-script or similar. > > > > I added “SetHandler cgi-script” above the DirecotryIndex. The web browser > now seems to work fine as I don’t see the traditional folder structure. > > > > What about messages like this in the err

[users@httpd] Writing and debugging Apache modules on a macOS with preferably Docker containers.

2017-12-30 Thread Roy Teeuwen
Hey all, I was wondering if any of you have any guidelines on what is the easiest way to write Apache modules on a macOS? I currently only have experience in Java / C# but I would like to try out writing a custom module. My C experience is from 10 years ago when I helped IRCd daemon and IRC se

Re: [users@httpd] Using environment variables in mod_substitute

2017-12-30 Thread Roy Teeuwen
Hey Nick, Hmm if I read the documentation, then proxy_html is specifically meant for rewriting urls when doing a proxy, but I can indeed see how you could make it work as a sort of hack though: ProxyHTMLInterp On ProxyHTMLLinks script nonce ProxyHTMLURLMap token ${UNIQUE_ID} V In this situatio

RE: [users@httpd] Problem with CGI script

2017-12-30 Thread mahmood n
>Missing SetHandler cgi-script or similar. I added “SetHandler cgi-script” above the DirecotryIndex. The web browser now seems to work fine as I don’t see the traditional folder structure. What about messages like this in the error.log [Sat Dec 30 18:10:14.142417 2017] [cgi:error] [pid 20329] [

Re: [users@httpd] Problem with CGI script

2017-12-30 Thread Eric Covener
Missing SetHandler cgi-script or similar. On Sat, Dec 30, 2017 at 6:14 AM, Mahmood Naderan wrote: >>DirectoryIndex contains a list of files to try, not a full path. >>My guess is that it's supposed to be >>DirectoryIndex index.cgi instead of the path. > > Well I change that to "DirectoryIndex ind

Re: [users@httpd] Problem with CGI script

2017-12-30 Thread Mahmood Naderan
>DirectoryIndex contains a list of files to try, not a full path.  >My guess is >that it's supposed to be >DirectoryIndex index.cgi instead of the path. Well I change that to "DirectoryIndex index.cgi", howeverby visiting the url from the web browser, I see the content of index.cgi as a plain tex