XAMPP default NameVhost

Problems with the Linux version of XAMPP, questions, comments, and anything related.

XAMPP default NameVhost

Postby MESWEBB » 30. May 2020 18:32

I'm new in VPS.
Brought one with Debian 10 and I install XAMPP latest version.
I added domain by SolusVM Panel -> DNS Zone: A Records (domain + IP)

Now I set up vHost.
I want add multiple domain names to vHost.
At beginning when I was type server IP in Browser then I was able to see XAMPP dashboard and now it's redirecting to first domain name.

/opt/lampp/bin/httpd -S
is a NameVirtualHost
default server xxx.cf (/opt/lampp/etc/extra/httpd-vhosts.conf:31)
port 80 namevhost xxx.cf (/opt/lampp/etc/extra/httpd-vhosts.conf:31)
alias xxx.cf
port 80 namevhost yyy.cf (/opt/lampp/etc/extra/httpd-vhosts.conf:53)
alias yyy.cf
*:* localhost (/opt/lampp/etc/extra/httpd-vhosts.conf:25)
ServerRoot: "/opt/lampp"
Main DocumentRoot: "/opt/lampp/htdocs"
Main ErrorLog: "/opt/lampp/logs/error_log"
Mutex authdigest-opaque: using_defaults
Mutex proxy-balancer-shm: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ldap-cache: using_defaults
Mutex proxy: using_defaults
Mutex authn-socache: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/opt/lampp/logs/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: "/opt/lampp/logs/httpd.pid"
Define: MODPERL2
User: name="daemon" id=1
Group: name="daemon" id=1

<VirtualHost *>
DocumentRoot /opt/lampp/htdocs
ServerName localhost

<VirtualHost xxx.cf:80>
ServerAdmin webmaster@xxx.cf
ServerName xxx.cf
ServerAlias xxx.cf
Redirect "/" "https://xxx.cf/"
DocumentRoot /opt/lampp/htdocs/xxx.cf
ErrorLog "logs/xxx.cf-errors"
CustomLog "logs/xxx.cf-access_log" common

<VirtualHost xxx.cf:443>
ServerAdmin webmaster@xxx.cf
ServerName xxx.cf
ServerAlias xxx.cf
DocumentRoot /opt/lampp/htdocs/xxx.cf
ErrorLog "logs/xxx.cf-errors"
CustomLog "logs/xxx.cf-access_log" common
SSLEngine on
SSLCertificateFile "/opt/lampp/htdocs/xxx.cf/crt/fullchain.pem"
SSLCertificateKeyFile "/opt/lampp/htdocs/xxx.cf/crt/key.pem"

<VirtualHost yyy.cf:80>
ServerAdmin webmaster@yyy.cf
ServerName yyy.cf
ServerAlias yyy.cf
DocumentRoot /opt/lampp/htdocs/yyy.cf
ErrorLog "logs/yyy.cf-errors"
CustomLog "logs/yyy.cf-access_log" common
Posts: 1
Joined: 30. May 2020 18:12
XAMPP version: 7.2.31-0 / 7.3.18-0 / 7.4.6-0
Operating System: Debian 10

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 16 guests