httpd.conf Problem
Posted by: Len_Jacobson@usa.net (---.hsd1.ca.comcast.net)
Date: February 12, 2022 05:08AM

I have just recreated the installation of Wamp Server (64-bit) due to the necessity to rebuild my desktop computer. All is well except for the following three errors that show up in PHPInfo:

(1) ServerAdmin -- I expect it to have my email address. Instead, it is: wampserver@wampserver.invalid


(2) DocumentRoot -- I expect it to be "C:/wamp64/www/TestServer". Instead, it shows "C:/wamp64/www"


(3) No entry is made to the Error Log


At the very end of my 'httpd.conf' file, I have the following section:

<VirtualHost *>
ServerAdmin Len_Jacobson@usa.net
ServerName desktop-test-server
DocumentRoot "C:/wamp64/www/TestServer"
ErrorLog "C:/wamp64/logs/desktop-test-server-error_log"
CustomLog "C:/wamp64/logs/desktop-test-server-access_log" common
</VirtualHost>


On my laptop computer, I have a different system than Wamp Server. That one is UniServer Zero XIV. On that computer, the 'httpd.conf' file has a very similar "<VirtualHost>" section. It works fine on that computer, but not on my desktop computer.

Since all three of the errors pertain to this "VirtualHost" section of httpd.conf, it seems obvious to me that there must be an error in that section. But I don't see it.

Is there anything that is wrong?

Thanks much for any suggestions.

Len Jacobson



Edited 1 time(s). Last edit at 02/12/2022 05:16AM by Len_Jacobson@usa.net.

Options: ReplyQuote
Re: httpd.conf Problem
Posted by: Otomatic (Moderator)
Date: February 12, 2022 09:42AM

Hi,

> At the very end of my 'httpd.conf' file, I have the following section:

Definitions of VirtualHost must be into httpd-vhosts.conf

See:
The need for Virtual Host
and
Wampserver 3 - Create or add a VirtualHost

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: httpd.conf Problem
Posted by: Len_Jacobson@usa.net (---.hsd1.ca.comcast.net)
Date: February 12, 2022 03:15PM

I had forgotten about that httpd-vhosts.conf file.

Your suggestion worked like a charm! Thank you very much.

Len Jacobson

Options: ReplyQuote


Sorry, only registered users may post in this forum.