vhost does not go to its doc root

Alles, was den Apache betrifft, kann hier besprochen werden.

vhost does not go to its doc root

Postby coldje » 14. January 2021 03:14

The primary web site https://drcold.pro comes up with its doc root at /opt/lampp/htdocs and is defined in httpd-ssl.conf. A vhost is defined in httpd-vhosts.conf provided here. No matter what I do, http://jeffc.website does not bring up its doc root: /opt/lampp/htdocs/jeffc, it brings up the primary doc root. In fact, http://jeffc.website/jeffc will bring up the the correct doc root. I'm doing something wrong.

<VirtualHost 127.0.1.1:80>
ServerAdmin coldje@msn.com
DocumentRoot "/opt/lampp/htdocs/jeffc"
ServerName jeffc.local
ServerAlias www.jeffc.website
ErrorLog "logs/jeffc.website-error_log"
CustomLog "logs/jeffc.website-access_log" common
</VirtualHost>
User avatar
coldje
 
Posts: 15
Joined: 01. November 2020 16:14
Location: Charlotte, NC
XAMPP version: 7.4.11-0
Operating System: Ubuntu server 20.04 LTS

Re: vhost does not go to its doc root

Postby coldje » 14. January 2021 03:47

I fixed it. I'm a little confused about *which* httpd.conf file XAMPP uses. There's one in /opt/lampp/apache2/conf/ and another one httpd.conf at in /opt/lampp/etc.
I was missing the Include --> pointing to the httpd-vhosts.conf file.
User avatar
coldje
 
Posts: 15
Joined: 01. November 2020 16:14
Location: Charlotte, NC
XAMPP version: 7.4.11-0
Operating System: Ubuntu server 20.04 LTS


Return to Apache

Who is online

Users browsing this forum: No registered users and 11 guests