Verify virtual host config - VIRTUAL HOSTS AND hosts SCRIPT  httpd.exe -S

SyMenu Cmder Windows CLI (for git, psysh...) : eg in J:\aplp\aplp\0_symenu\ProgramFiles\SPSSuite\SyMenuSuite\Cmder_sps
j:
J:\> cd J:\awww\www
displays :
J:\awww\www (master -> origin)

J:\xampp\apache\bin\httpd.exe -S

displays :

VirtualHost configuration:
*:8083 is a NameVirtualHost
default server localhost (J:/xampp/apache/conf/extra/httpd-vhosts.conf:56)
port 8083 namevhost localhost (J:/xampp/apache/conf/extra/httpd-vhosts.conf:56)
port 8083 namevhost dev1 (J:/xampp/apache/conf/extra/httpd-vhosts.conf:70)
*:443 dev1 (J:/xampp/apache/conf/extra/httpd-ssl.conf:121)
ServerRoot: "J:/xampp/apache"
Main DocumentRoot: "J:/xampp/htdocs"
Main ErrorLog: "J:/xampp/apache/logs/error.log"
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="J:/xampp/apache/logs/" mechanism=default
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
PidFile: "J:/xampp/apache/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: SRVROOT=/xampp/apache

 

Info about Apache server    J:\xampp\apache\bin\httpd.exe -V

displays :

Server version: Apache/2.4.38 (Win64)
Apache Lounge VC15 Server built: Feb 28 2019 11:40:54
Server's Module Magic Number: 20120211:83
Server loaded: APR 1.6.5, APR-UTIL 1.6.1
Compiled using: APR 1.6.5, APR-UTIL 1.6.1
Architecture: 64-bit
Server MPM: WinNT
threaded: yes (fixed thread count)
forked: no
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/apache"
-D SUEXEC_BIN="/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error.log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

 


hosts script   C:\Windows\System32\drivers\etc\hosts

# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost dev1
::1 localhost dev1

Coul be also :
#
127.0.0.1 phpmyadmin.localhost
## Local by Flywheel - Start ##
192.168.95.100 phporacle.local
192.168.95.100 www.phporacle.local
192.168.95.100 afwww.local
192.168.95.100 www.afwww.local
192.168.95.100 fwphp.local
192.168.95.100 www.fwphp.local
## Local by Flywheel - End ##
#
# help should be better :
#192.168.10.10 dev1.ap homestead.app
#
# Start of entries inserted by Spybot - Search & Destroy
# This list is Copyright 2000-2017 Safer-Networking Ltd.
# NOT RECOMENDED HUGE LIST HERE
# End of entries inserted by Spybot - Search & Destroy

 

Virtual hosts script   J:/xampp/apache/conf/extra/httpd-vhosts.conf

<VirtualHost *:8083>
   DocumentRoot "/xampp/htdocs/"
   ServerName localhost
</VirtualHost>
<VirtualHost *:8083>
   DocumentRoot "J:/awww/www/"
   ServerName dev1
</VirtualHost>

 

 J:\xampp\apache\conf\httpd.conf

Define SRVROOT "/xampp/apache"
ServerRoot "/xampp/apache"
Listen 8083

LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule headers_module modules/mod_headers.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule cache_disk_module modules/mod_cache_disk.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule status_module modules/mod_status.so

LoadModule vhost_alias_module modules/mod_vhost_alias.so

<IfModule unixd_module>
   User daemon
   Group daemon
</IfModule>

ServerAdmin slavkoss22@gmail.com
ServerName localhost:8083

<Directory />
   AllowOverride none
   Require all denied
</Directory>

DocumentRoot "/xampp/htdocs"
<Directory "/xampp/htdocs">
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Require all granted
</Directory>
<Directory "J:/awww/www/">
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>

<Files ".ht*">
Require all denied
</Files>

ErrorLog "logs/error.log"
LogLevel warn
<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 "logs/access.log" combined
</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "/xampp/cgi-bin/"
</IfModule>

<IfModule cgid_module>

</IfModule>

<Directory "/xampp/cgi-bin">
AllowOverride All
Options None
Require all granted
</Directory>

<IfModule headers_module>
RequestHeader unset Proxy early
</IfModule>

<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler cgi-script .cgi .pl .asp
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>

<IfModule mime_magic_module>
MIMEMagicFile "conf/magic"
</IfModule>

Include conf/extra/httpd-mpm.conf

Include conf/extra/httpd-multilang-errordoc.conf

Include conf/extra/httpd-autoindex.conf

Include conf/extra/httpd-languages.conf

Include conf/extra/httpd-userdir.conf

Include conf/extra/httpd-info.conf

Include conf/extra/httpd-vhosts.conf

Include "conf/extra/httpd-proxy.conf"

Include "conf/extra/httpd-default.conf"

Include "conf/extra/httpd-xampp.conf"

<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>

Include conf/extra/httpd-ssl.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

AcceptFilter http none
AcceptFilter https none
<IfModule mod_proxy.c>
<IfModule mod_proxy_ajp.c>
Include "conf/extra/httpd-ajp.conf"
</IfModule>
</IfModule>

 

 

J:\xampp\php\php.ini

engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = -1
disable_functions =
disable_classes =
zend.enable_gc = On
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
default_charset = "UTF-8"
include_path = J:\xampp\php\PEAR
doc_root =
user_dir =
extension_dir = "J:\xampp\php\ext"
enable_dl = Off

file_uploads = On
upload_tmp_dir = "J:\xampp\tmp"
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
zend_extension = "J:/xampp/php/ext/php_xdebug.dll"
extension=bz2
extension=curl
extension=fileinfo
extension=gd2
extension=gettext
extension=intl
extension=mbstring
extension=exif
extension=mysqli
; Use with Oracle Database 12c Instant Client :
extension=oci8_11g
extension=pdo_mysql
extension=pdo_oci
extension=pdo_sqlite
extension=soap

asp_tags=Off
display_startup_errors=On
track_errors=Off
y2k_compliance=On
allow_call_time_pass_reference=Off
safe_mode=Off
safe_mode_gid=Off
safe_mode_allowed_env_vars=PHP_
safe_mode_protected_env_vars=LD_LIBRARY_PATH
error_log="J:\xampp\php\logs\php_error_log"
register_globals=Off
register_long_arrays=Off
magic_quotes_gpc=Off
magic_quotes_runtime=Off
magic_quotes_sybase=Off
extension=php_openssl.dll
extension=php_ftp.dll

cli_server.color = On

pdo_mysql.default_socket="MySQL"
pdo_mysql.default_socket=

SMTP = mail.iskon.hr
smtp_port = 25
;Iskon 25, 587

mail.add_x_header = Off

odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1

ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"

mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off

mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = On

pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1

pgsql.ignore_notice = 0
pgsql.log_notice = 0

bcmath.scale = 0

browscap = "J:\xampp\php\extras\browscap.ini"

session.save_handler = files
session.save_path = "J:\xampp\tmp"
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.cookie_samesite =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.sid_length = 26
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.sid_bits_per_character = 5

zend.assertions = 1

tidy.clean_output = Off

soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5

ldap.max_links = -1

curl.cainfo = "J:\xampp\apache\bin\curl-ca-bundle.crt"

openssl.cafile = "J:\xampp\apache\bin\curl-ca-bundle.crt"

[Syslog]
define_syslog_variables=Off
[Session]
define_syslog_variables=Off
[Date]
date.timezone=Europe/Berlin
[MySQL]
mysql.allow_local_infile=On
mysql.allow_persistent=On
mysql.cache_size=2000
mysql.max_persistent=-1
mysql.max_link=-1
mysql.default_port=3306
mysql.default_socket="MySQL"
mysql.connect_timeout=3
mysql.trace_mode=Off
[Sybase-CT]
sybct.allow_persistent=On
sybct.max_persistent=-1
sybct.max_links=-1
sybct.min_server_severity=10
sybct.min_client_severity=10
[MSSQL]
mssql.allow_persistent=On
mssql.max_persistent=-1
mssql.max_links=-1
mssql.min_error_severity=10
mssql.min_message_severity=10
mssql.compatability_mode=Off
mssql.secure_connection=Off       PHP SAYS:  šđčćž

$_SERVER['REMOTE_ADDR']=3.238.232.88 $_SERVER['SERVER_PORT']=80
PHP_SAPI=cgi-fcgi





$_SERVER['REMOTE_ADDR']=3.238.232.88