Re: [users@httpd] Adding perl-cgi in apache 2.4

2019-06-20 Thread Bret Stern


My last comment. Maybe the perl interpreter wasn't in the same place
defined in the perl script header.

Oh Well. Nothing ventured. Nothing gained.




On Thu, 2019-06-20 at 18:53 -0600, @lbutlr wrote:
> On 18 Jun 2019, at 22:03, @lbutlr  wrote:
> > I need to enable perl-cgi for a specific directory local to a
> > single site. 
> 
> I just punted and rewrote the the script in php.
> 


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Adding perl-cgi in apache 2.4

2019-06-19 Thread Bret Stern
Your original post log error indicated:

 No such file or directory: AH01241: exec of '/usr/local/www/bi/cgi-
local/b4.pl' failed


Perhaps the path for cgi scripts has been changed/redifined from the
default in the apache config file




On Wed, 2019-06-19 at 08:11 -0600, @lbutlr wrote:
> On 19 Jun 2019, at 00:25, bret_st...@machinemanagement.com wrote:
> > Permissions on the executable/.pl
> > script correct to run when called?
> 
> Permissions are the same they’ve been since 2004, 777.
> 
> 
> On 19 Jun 2019, at 05:07, Eric Covener  wrote:
> > bad shebang in the file itself?  Suspicious that you added "perl"
> > in
> > front explicitly.
> 
> It is a perl cgi, there is no shebang at all.
> 
> > If you don't want to run it via its defined interpreter, which is
> > what
> > mod_cgi does
> 
> No, I very much do want to run it just as it has been run in the
> past.
> 
> 
> 


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Virtual/Proxy setup to internal webserver

2018-02-06 Thread Bret Stern
Will do.

I just shut my local forum host off to see what the www.mydomain.com
would return as an
error message when the forum link was clicked. I got no error, and the
"waiting for forum.mydoamin.com"
was displayed in the status

Are there any traps I can set in the httpd.conf file or within the
 tags?

You know how it goes...there's always one more thing. I'll read up on
the  docs.




.



On Tue, 2018-02-06 at 12:08 -0500, Frank Gingras wrote:
> Make sure you match the trailing slashes when proxying too.
> 
> 
> 
> 
> 
> On Tue, Feb 6, 2018 at 11:34 AM, Bret Stern
> <bret_st...@machinemanagement.com> wrote:
> 
> Yann,
> This works. Thank you very much.
> 
> Would you consider this a safe arrangement?
> 
> Here's what I did.
> 
> To make it work I did the following.
> 1. Added a dns subdomain for www.mydomain.com  called
> forum.mydomain.com
> pointing to ip of www.mydowain.com
> 
> 2. Added a link in my html http://forum.mydomain.com
> 
> 3. Uncommented proxy_module and proxy_http_module
> in  /usr/local/etc/apache24/ httpd.conf
> 
> 4. Added below to httpd.conf
> 
> ProxyPass / httpd://internal_lan_host_ip/phpBB3
> ProxyReverse / httpd://internal_lan_host_ip/phpBB3
> ServerName forum.machinemanagement.com
> 
> 
> 5. restarted httpd service
> Bret
> 
> 
> 
> 
> 
> 
>     
> 
> On Tue, 2018-02-06 at 09:51 +0100, Yann Ylavic wrote: 
> 
> > On Tue, Feb 6, 2018 at 8:50 AM, Bret Stern
> > <bret_st...@machinemanagement.com> wrote:
> > > I have apache24 running on freebsd.
> > >
> > > Can I configure virtual host to direct a request for 
> forum.mydomain.com
> > > to an internal webserver on my network
> > >
> > > eg; DocumentRoot "forum.mydomain.com"
> > 
> > This would be for local documents.
> > 
> > > or "xxx.xxx.xx.xxx"
> > >
> > > I tried using Proxy mod but not sure how to setup.
> > 
> > LoadModule proxy_module modules/mod_proxy.so
> > LoadModule proxy_http_module modules/mod_proxy_http.so
> > 
> > ServerName forum.mydomain.com
> > ProxyPass / http://internal_webserver/
> > ProxyPassReverse / http://internal_webserver/
> > 
> > 
> > 
>     > Regards,
> > Yann.
> > 
> > 
> -
>     > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> > For additional commands, e-mail: users-h...@httpd.apache.org
> > 
> 
> 
> 
> 
> -- 
> Bret Stern
> Machine Management
> Industrial and Commercial IT Services
> 
> 707-775-9792 (cell-text-direct)
> 
> 
> 

-- 
Bret Stern
Machine Management
Industrial and Commercial IT Services

707-775-9792 (cell-text-direct)


Re: [users@httpd] Virtual/Proxy setup to internal webserver

2018-02-06 Thread Bret Stern
Yann,
This works. Thank you very much.

Would you consider this a safe arrangement?

Here's what I did.

To make it work I did the following.
1. Added a dns subdomain for www.mydomain.com  called forum.mydomain.com
pointing to ip of www.mydowain.com

2. Added a link in my html http://forum.mydomain.com

3. Uncommented proxy_module and proxy_http_module
in  /usr/local/etc/apache24/ httpd.conf

4. Added below to httpd.conf

ProxyPass / httpd://internal_lan_host_ip/phpBB3
ProxyReverse / httpd://internal_lan_host_ip/phpBB3
ServerName forum.machinemanagement.com


5. restarted httpd service
Bret






On Tue, 2018-02-06 at 09:51 +0100, Yann Ylavic wrote:

> On Tue, Feb 6, 2018 at 8:50 AM, Bret Stern
> <bret_st...@machinemanagement.com> wrote:
> > I have apache24 running on freebsd.
> >
> > Can I configure virtual host to direct a request for forum.mydomain.com
> > to an internal webserver on my network
> >
> > eg; DocumentRoot "forum.mydomain.com"
> 
> This would be for local documents.
> 
> > or "xxx.xxx.xx.xxx"
> >
> > I tried using Proxy mod but not sure how to setup.
> 
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
> 
> ServerName forum.mydomain.com
> ProxyPass / http://internal_webserver/
> ProxyPassReverse / http://internal_webserver/
> 
> 
> 
> Regards,
> Yann.
> 
> -----
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
> 


-- 
Bret Stern
Machine Management
Industrial and Commercial IT Services

707-775-9792 (cell-text-direct)


[users@httpd] Virtual/Proxy setup to internal webserver

2018-02-05 Thread Bret Stern
I have apache24 running on freebsd.

Can I configure virtual host to direct a request for forum.mydomain.com
to an internal webserver on my network

eg; DocumentRoot "forum.mydomain.com" 
or "xxx.xxx.xx.xxx"

I tried using Proxy mod but not sure how to setup.

Any hints welcome