Page 1 of 1

IExplorer problem again

PostPosted: 19. November 2006 09:43
by wojtek
Hi folks,
Below see how i defined my vhost containers. apache listens only for

Listen 127.0.0.1:80. Isee localhost and pierwszy.ppll from Mozilla firefox.
and only localhost from IExplorer. Help !!! see below code and what error.log says

Code: Select all
NameVirtualHost 127.0.0.1:80

<VirtualHost localhost:80>
</VirtualHost>

<VirtualHost pierwszy.ppll:80>
    ServerAdmin webmaster@pierwszy.ppll
    DocumentRoot C:/USR/www/pierwszy.ppll/htdocs
    ServerName pierwszy.ppll
    ServerAlias www.pierwszy.ppll
    ErrorLog logs/pierwszy-error_log
    CustomLog logs/pierwszy-access_log common
</VirtualHost>



[/list][Sun Nov 19 09:26:05 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Sun Nov 19 09:26:05 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Sun Nov 19 09:26:06 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Sun Nov 19 09:26:06 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Sun Nov 19 09:26:07 2006] [notice] Apache configured -- resuming normal operations
[Sun Nov 19 09:26:07 2006] [notice] Server built: Sep 30 2006 21:24:06
[Sun Nov 19 09:26:07 2006] [notice] Parent: Created child process 2208
[Sun Nov 19 09:26:09 2006] [notice] Child 2208: Child process is running
[Sun Nov 19 09:26:09 2006] [notice] Child 2208: Acquired the start mutex.
[Sun Nov 19 09:26:09 2006] [notice] Child 2208: Starting 250 worker threads.
[Sun Nov 19 09:26:09 2006] [notice] Child 2208: Starting thread to listen on port 443.
[Sun Nov 19 09:26:09 2006] [notice] Child 2208: Starting thread to listen on port 80.
[/code]

Re: IExplorer problem again

PostPosted: 19. November 2006 10:21
by Izzy
wojtek wrote:
Code: Select all
NameVirtualHost 127.0.0.1:80

<VirtualHost localhost:80>
</VirtualHost>

<VirtualHost pierwszy.ppll:80>
    ServerAdmin webmaster@pierwszy.ppll
    DocumentRoot C:/USR/www/pierwszy.ppll/htdocs
    ServerName pierwszy.ppll
    ServerAlias www.pierwszy.ppll
    ErrorLog logs/pierwszy-error_log
    CustomLog logs/pierwszy-access_log common
</VirtualHost>


Try this:
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs" <- change this to your own path
</VirtualHost>

<VirtualHost *:80>
ServerName pierwszy.ppll
ServerAlias www.pierwszy.ppll
DocumentRoot "C:/USR/www/pierwszy.ppll/htdocs"
ServerAdmin webmaster@pierwszy.ppll
<Directory "C:/USR/www/pierwszy.ppll/htdocs"
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog logs/pierwszy-error_log
CustomLog logs/pierwszy-access_log common
</VirtualHost>


Change this in your httpd.conf file
Listen 127.0.0.1:80
to
Listen 80

Save both httpd.conf and extra\httpd-vhosts.conf files then restart Apache.

Also check you have this in your Windows hosts file:
C:\WINDOWS\system32\drivers\etc\hosts
(Just drag and drop in to your text editor to check and/or edit it.)
127.0.0.1 localhost

doesn't work

PostPosted: 19. November 2006 12:35
by wojtek
i am afraid

Re: doesn't work

PostPosted: 19. November 2006 12:55
by Izzy
wojtek wrote:i am afraid


Your afraid of what?

Backup your files first before making any changes then you can always revert back to the backup copies if you have any issues.

Tell me Izzy now

PostPosted: 21. November 2006 21:56
by wojtek
I have default httpd.conf now. without any vhosts defined. restart of the server says this shit- see below. Does it mean something wrong with the installation of xampp? how to check. or maybe repair?

[Tue Nov 21 21:51:56 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Tue Nov 21 21:51:56 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Tue Nov 21 21:51:57 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Tue Nov 21 21:51:57 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Tue Nov 21 21:51:58 2006] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.1.6 configured -- resuming normal operations
[Tue Nov 21 21:51:58 2006] [notice] Server built: Sep 30 2006 21:24:06
[Tue Nov 21 21:51:58 2006] [notice] Parent: Created child process 1000
[Tue Nov 21 21:51:59 2006] [notice] Child 1000: Child process is running
[Tue Nov 21 21:51:59 2006] [notice] Child 1000: Acquired the start mutex.
[Tue Nov 21 21:51:59 2006] [notice] Child 1000: Starting 250 worker threads.
[Tue Nov 21 21:51:59 2006] [notice] Child 1000: Starting thread to listen on port 443.
[Tue Nov 21 21:51:59 2006] [notice] Child 1000: Starting thread to listen on port 80.