Próbuję uruchomić frontend Kalkun do gammu-smsd na wirtualce
Po wejściu na stronę:
http://sms2.domena.pl:81/index.php
gdzie index.php zawiera:
<?php phpinfo(); ?>
W przeglądarce komunikat:
"Bad Request
Your browser sent a request that this server could not understand."
/var/log/apache2/sms2.domena.pl-error_log
[Sat May 02 18:23:25.692137 2020] [authz_core:debug] [pid 12330] mod_authz_core.c(818): [client 10.0.3.250:51390] AH01626: authorization result of Require all granted: granted
[Sat May 02 18:23:25.692371 2020] [authz_core:debug] [pid 12330] mod_authz_core.c(818): [client 10.0.3.250:51390] AH01626: authorization result of <RequireAny>: granted
[Sat May 02 18:23:25.692534 2020] [core:error] [pid 12330] [client 10.0.3.250:51390] AH00126: Invalid URI in request '\xe2\x80\x9c/php/php-cgi\xe2\x80\x9d/index.php' 'GET /index.php HTTP/1.1'
[Sat May 02 18:23:26.120253 2020] [authz_core:debug] [pid 12332] mod_authz_core.c(818): [client 10.0.3.250:51391] AH01626: authorization result of Require all granted: granted
[Sat May 02 18:23:26.120484 2020] [authz_core:debug] [pid 12332] mod_authz_core.c(818): [client 10.0.3.250:51391] AH01626: authorization result of <RequireAny>: granted
/etc/apache2/extra/httpd-vhosts.conf
<VirtualHost sms2.domena.pl:81>
ServerAdmin sms2@domena.pl
DocumentRoot "/var/www/sms2domena.pl"
ServerName sms2.domena.pl
ServerAlias www.sms2.domena.pl
ErrorLog "/var/log/apache2/sms2.domena.pl-error_log"
CustomLog "/var/log/apache2/sms2.domena.pl-access_log" common
<Directory "/var/www/sms2.domena.pl">
order deny,allow
deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Allow from 10.0.0.0/255.0.0.0
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
/etc/apache2/apache2.conf
ServerRoot "/usr"
Listen 81
LoadModule mpm_prefork_module lib/apache2/mod_mpm_prefork.so
LoadModule authn_file_module lib/apache2/mod_authn_file.so
LoadModule authn_core_module lib/apache2/mod_authn_core.so
LoadModule authz_host_module lib/apache2/mod_authz_host.so
LoadModule authz_groupfile_module lib/apache2/mod_authz_groupfile.so
LoadModule authz_user_module lib/apache2/mod_authz_user.so
LoadModule authz_core_module lib/apache2/mod_authz_core.so
LoadModule access_compat_module lib/apache2/mod_access_compat.so
LoadModule auth_basic_module lib/apache2/mod_auth_basic.so
LoadModule reqtimeout_module lib/apache2/mod_reqtimeout.so
LoadModule filter_module lib/apache2/mod_filter.so
LoadModule mime_module lib/apache2/mod_mime.so
LoadModule log_config_module lib/apache2/mod_log_config.so
LoadModule env_module lib/apache2/mod_env.so
LoadModule headers_module lib/apache2/mod_headers.so
LoadModule setenvif_module lib/apache2/mod_setenvif.so
LoadModule version_module lib/apache2/mod_version.so
LoadModule unixd_module lib/apache2/mod_unixd.so
LoadModule status_module lib/apache2/mod_status.so
LoadModule autoindex_module lib/apache2/mod_autoindex.so
LoadModule actions_module lib/apache2/mod_actions.so
<IfModule !mpm_prefork_module>
#LoadModule cgid_module lib/apache2/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
#LoadModule cgi_module lib/apache2/mod_cgi.so
</IfModule>
LoadModule dir_module lib/apache2/mod_dir.so
LoadModule alias_module lib/apache2/mod_alias.so
<IfModule unixd_module>
User apache
Group apache
</IfModule>
############### MAIN config
ServerAdmin you@example.com
ServerName sms2.domena.pl
DocumentRoot "/usr/share/apache2/htdocs"
<Directory />
AllowOverride none
Require all denied
</Directory>
<Directory "/www">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "/var/log/apache2/error_log"
#LogLevel warn
LogLevel debug
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "/var/log/apache2/access_log" common
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/www/cgi-bin/"
ScriptAlias /php/ "/usr/bin/"
</IfModule>
<IfModule cgid_module>
#Scriptsock cgisock
</IfModule>
<Directory "/usr/share/apache2/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<Directory “/usr/bin”>
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule headers_module>
RequestHeader unset Proxy early
</IfModule>
<IfModule mime_module>
TypesConfig /etc/apache2/mime.types
#AddType application/x-gzip .tgz
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
#AddHandler cgi-script .cgi
#AddHandler type-map var
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>
#MIMEMagicFile /etc/apache2/magic
#Include /etc/apache2/extra/httpd-mpm.conf
#Include /etc/apache2/extra/httpd-multilang-errordoc.conf
#Include /etc/apache2/extra/httpd-autoindex.conf
#Include /etc/apache2/extra/httpd-languages.conf
#Include /etc/apache2/extra/httpd-userdir.conf
#Include /etc/apache2/extra/httpd-info.conf
Include /etc/apache2/extra/httpd-vhosts.conf
#Include /etc/apache2/extra/httpd-manual.conf
#Include /etc/apache2/extra/httpd-dav.conf
#Include /etc/apache2/extra/httpd-default.conf
# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include /etc/apache2/extra/proxy-html.conf
</IfModule>
#Include /etc/apache2/extra/httpd-ssl.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Action application/x-httpd-php “/php/php-cgi”
Gdzie może być błąd ?
Z góry dziękuję za pomoc
Krzysztof