projectpete
MIS
Hello,
I am running apache 1.3.34 with PHP 4.3.11 and OpenSSL 0.9.8a on windows server 2003. The site works fine with the httpd.conf as it is now without SSL or virtual host using any port other than 80. When I add the edited httpd.conf file and try to start the apache service i get the error:
"apache service on local computer started then stopped. some services stop automatically if they have no work to do, for example, the performance logs and alerts service"
Here is the end of the current httpd.conf that works:
NameVirtualHost *:80
Listen 80
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName <Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName xxx.xxx.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName localhost
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName 192.168.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName test.tests.com
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
Here is the end of the edited httpd.conf that doesnt work:
NameVirtualHost *:80
NameVirtualHost *:443
Listen 80
Listen 443
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName <Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName xxx.xxx.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName localhost
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName 192.168.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName irent.venetor.com
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName xxx.xxx.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName localhost
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName 192.168.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost* :443>
SSLEngine On
SSLCertificateFile C:/web/openssl/xxx.crt
SSLCertificateKeyFile C:/web/openssl/xxx.key
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
# see for more info
SSLMutex sem
SSLRandomSeed startup builtin
SSLSessionCache none
SSLLog logs/SSL.log
SSLLogLevel info
# You can later change "info" to "warn" if everything is OK
I am running apache 1.3.34 with PHP 4.3.11 and OpenSSL 0.9.8a on windows server 2003. The site works fine with the httpd.conf as it is now without SSL or virtual host using any port other than 80. When I add the edited httpd.conf file and try to start the apache service i get the error:
"apache service on local computer started then stopped. some services stop automatically if they have no work to do, for example, the performance logs and alerts service"
Here is the end of the current httpd.conf that works:
NameVirtualHost *:80
Listen 80
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName <Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName xxx.xxx.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName localhost
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName 192.168.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName test.tests.com
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
Here is the end of the edited httpd.conf that doesnt work:
NameVirtualHost *:80
NameVirtualHost *:443
Listen 80
Listen 443
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName <Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName xxx.xxx.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName localhost
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName 192.168.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName irent.venetor.com
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName xxx.xxx.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName localhost
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "c:/Web/xxx"
DirectoryIndex index.htm index.html index.php
ServerName 192.168.xxx.xxx
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost* :443>
SSLEngine On
SSLCertificateFile C:/web/openssl/xxx.crt
SSLCertificateKeyFile C:/web/openssl/xxx.key
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
# see for more info
SSLMutex sem
SSLRandomSeed startup builtin
SSLSessionCache none
SSLLog logs/SSL.log
SSLLogLevel info
# You can later change "info" to "warn" if everything is OK