Dashboard on subdomain, how?!

Hello,

i have a question… how can i set all QuickBox stuff on a own subdomain? if i change something in

/etc/apache2/sites-enabled/default-ssl.conf

don´t work… and i need other websites on my server.

i want to set all on qb.domain.tld but try this for few hours :frowning:

all you have to do is direct your dns to the server you should not have to change anything on the server. none of the apache files should be changed. you might set up let’s encrypt but make sure to follow our how to in our wiki.

I dont think that will do it. The virtual host for QB is setup for listen for all incoming traffic. He needs to add a ServerName entry per https://httpd.apache.org/docs/2.4/vhosts/name-based.html and in any additional entries he creates for the new hostnames.

He’s asking to add additional virtual hosts to the apache server.

This missing optional entry is also the reason that Lets Encrypt will prompt for the config file to use.

Okay works with Lets Encrypt, but how can i disable “Unauthorized” i need still the user:pass :confused:

Removing auth to a service which controls your server is not recommended especially on a publicly accessible domain

That said, remove

AuthType
AuthName

From the configs you want to modify and alter

Require valid-user

to

Require all granted
1 Like

I need the login only on the qb.domain.tld but not on domain1.tld and domain2.tld. you understand!? :cold_sweat:

Then you need to create separate vhosts for your other domains and define your server in default-ssl.conf

ServerName qb.domain.tld

In both port 80 and port 443

well done, i only needed Require all granted in my new vHost.

Thank :kissing_heart:

The little details can be a bitch sometimes can’t they? :wink:

lel

but one question, this works only with https not http -.-

https://byte.wtf/m7wtyfd1.txt

if i add a domain.tld:80 this doesn’t work

You will need to create a vhost for the port 80 as well. ie;

<VirtualHost domain.tld:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

ServerName domain.tld
<Directory />
    #Options FollowSymLinks
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order deny,allow
    Allow from all
    Require all granted
</Directory>
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost domain.tld:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

SSLCertificateFile /etc/letsencrypt/live/domain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.tld/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

ServerName domain.tld
<Directory />
    #Options FollowSymLinks
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order deny,allow
    Allow from all
    Require all granted
</Directory>
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
</IfModule>
1 Like

Thats what i needed, thanks :slight_smile: