Here it is working perfectly fine.
delivering an image is done by Apache automatically, mod_harbour does nothing there
Here it is working perfectly fine.
delivering an image is done by Apache automatically, mod_harbour does nothing there
Dear Antonio,
You should not work today on your birthday.
I wish you all the best again.
What you write works for me when I enter the absolute URL link https:// myserver.com/images/xxx.jpg
What exactly must be the link without first to the net and then back?
Where exactly in htaccess do I store the images.
A question for DUMMIES:
Is CGI to understand that here the harbourmachine is outside the webserber and then delivers the HTML code to the server?
Best regards,
Otto
PS: Please keep in mind that this server has only a 24/100 MBit/s connection to the internet.
Hi Antonio ,
i want to test "mod_harbour CGI" on CENTOS Linux .
What is the right way to do this ?
Copy modharbour in /cgi-bin/ under /var/www/ folder ?
And then create .htaccess in /var/www/html ( the same file of your link ) ?
Is it correct ?
Bye
Simply copy modharbour.exe and DLLs from here to your cgi-bin folder:Then place a little test.prg in your cgi-bin folder like this one:
https://github.com/FiveTechSoft/mod_harbour/tree/master/cgi/windows
Copy .hcaccess to apache/htdocs:
https://github.com/FiveTechSoft/mod_harbour/blob/master/cgi/windows/.htaccess
And use this Apache configuration file:
https://github.com/FiveTechSoft/mod_harbour/blob/master/cgi/windows/httpd.conf
function Main()
? Time()
return nilAntonio Linares wrote:Muchas gracias! :-)Si
Estás usando el fichero .htaccess y el httpd.conf que proporcionamos en el repo ?
# Harbour - forward all request to modharbour.exe
RewriteEngine on
RewriteRule ^(.*\.prg) /cgi-bin/modharbour.exe?$1 [L,QSA]
RewriteEngine on
RewriteRule ^([^\.]+) /cgi-bin/modharbour.exe?$1.prg [L,QSA]#Include conf/extra/httpd-dav.conf
# Various default settings
#Include conf/extra/httpd-default.conf
# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/httpd-proxy-html.conf
</IfModule>
# Secure (SSL/TLS) connections
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
#Include conf/extra/httpd-ssl.conf
Include conf/extra/httpd-ahssl.conf
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<IfModule http2_module>
ProtocolsHonorOrder On
Protocols h2 h2c http/1.1
</IfModule>
# PHP FastCGI
#
# Edit conf/extra/httpd-fcgid.conf to match your php location
# and uncomment the Include line below.
#
#Include conf/extra/httpd-fcgid.conf
<IfModule lua_module>
AddHandler lua-script .lua
</IfModule>What you get is robustness
Enviado desde mi SM-M325FV mediante Tapatalk
Hi Antonio.
First of all happy birthday !!!
I'm trying to install your new version of modharbour on one Linux machine with Centos 7, 64bits.
This is hosted on Aruba, in Italy and the problem is that I have access only to FTP server, I cannot
copy the conf file for Apache and I can use only the cgi-bin folder or the root one.
Is there any chance to install modharbour without changing Apache configuration ?
Thanks a lot
Massimo
Hi Antonio.
Could be possible to have that PHP workaround that you use for launching modharbour on non dedicated servers ?
Thanks a lot.
Massimo
<?php
$result = shell_exec( "./modharbour modpro.prg" );
print( substr( $result, strpos( $result, chr( 10 ).chr( 10 ) ) + 1 ) );
?>