Salve, per la prima volta (quindi con esperienza pressochè nulla) ho cercato di installare un server web locale:
il server è installato sulla macchina 1 (192.168.0.1)
la macchina 2 (192.168.0.2) riesce ad accedere alla wwwroot del server apache sulla macchina 1, e il browser della macchina 2 riesce a visualizzare un documento index.html caricato nella wwwroot del server.
Il problema è che se in wwwroot c'è un file index.php, il browser sulla macchina 1 lo carica senza problemi, mentre quello in remoto (macchina 2) riceve un messaggio di connessione rifiutata durante il tentativo di connessione a 127.0.0.1...
Riporto di seguito alcuni parametri del file httpd.conf che penso possano essere utili a capire il problema.
Grazie.
Timeout 600
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxRequestsPerChild 0
ThreadsPerChild 50
Listen 127.0.0.1:80
Listen 192.168.0.1:80
LoadModule anon_auth_module modules/mod_auth_anon.so
LoadModule php4_module "${path}/php/php4apache.dll"
ClearModuleList
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
#AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
#AddModule mod_status.c
#AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_isapi.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
#AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
#AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
#AddModule mod_auth_dbm.c
#AddModule mod_auth_digest.c
#AddModule mod_digest.c
#AddModule mod_proxy.c
#AddModule mod_cern_meta.c
#AddModule mod_expires.c
#AddModule mod_headers.c
#AddModule mod_usertrack.c
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_php4.c
Port 80
ServerAdmin admin@localhost
ServerName localhost
DocumentRoot "${path}/www"
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
</Directory>
<Directory "${path}/www">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir "${path}/apache/users/"
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.shtml index.wml index.pwml index.php3 index.php4
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
UseCanonicalName Off
<IfModule mod_mime.c>
TypesConfig conf/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access.log common
ServerSignature Email
<IfModule mod_alias.c>
Alias /icons/ "${path}/apache/icons/"
<Directory "${path}/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /images_easyphp/ "${path}/home/images_easyphp/"
<Directory "${path}/home/images_easyphp">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /mysql/ "${path}/phpmyadmin/"
<Directory "${path}/phpmyadmin">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
allow from 192.168.0.1
allow from 192.168.0.2
deny from all
</Directory>
Alias /home/ "${path}/home/"
<Directory "${path}/home">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
allow from 192.168.0.1
allow from 192.168.0.2
deny from all
</Directory>
ScriptAlias /cgi-bin/ "${path}/cgi-bin/"
<Directory "${path}/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>