Should this file (/etc/apache2/sites-available/default-ssl.conf) be modified when changing the Apache "DocumentRoot Directory"?


nobel ship

I wish to change my Apache DocumentRoot directory from . I have modified these files and . Can I modify it?/var/www/html//path/to/another/directory/etc/apache2/apache2.conf/etc/apache2/sites-available/000-default.conf/etc/apache2/sites-available/default-ssl.conf

Without this problem, I also wonder why this file is important? and why should it be modified (if it needs to be modified)?

Mackay

The two files .conf you find by default /etc/apache2/sites-available/refer to the host configuration.

The .conf file should be edited for any hosts you add to your Apache installation.

After editing or adding a .conf file, it must be run sudo a2ensite [file.conf]before sudo service apache reloadthe new configuration can be enabled.

default-ssl.conf refers to the host encrypted with https/ssl.

If you don't use Https host, you don't need to edit this file.

Related


Should I use httpd.conf or apache2.conf for Apache configuration?

j On Ubuntu, I'm trying to get httpd.confapache2 's files. My server doesn't show one. Will it be the apache2.confsame httpd.conf? bookworm Did some more research on this (beyond my comment): Ubuntu Docs: HTTPD-Apache2 Web Server apache2.conf : The main config

Should I use httpd.conf or apache2.conf for Apache configuration?

j On Ubuntu, I'm trying to get httpd.confapache2 's files. My server doesn't show one. Will it be the apache2.confsame httpd.conf? bookworm Did some more research on this (beyond my comment): Ubuntu Docs: HTTPD-Apache2 Web Server apache2.conf : The main config

ubuntu /etc/apache2/conf enabled upload file

ghost / etc / apache2 / conf-enabled Here I try to upload my script (sstmx) via winship but I get an error, I also tried these promos along with Ubuntu version 16.04 sudo chmod g+x /etc/apache2/conf-enabled/ sudo chmod 775 /etc/apache2/conf-enabled/ I don

httpd.conf new file location - apache2

something suspicious I am trying to add some security to my website. I've been following this: https://www.tecmint.com/apache-security-tips/ They want me to edit the httpd file, but it doesn't exist in my server. I started doing some more research and I found

How to setup apache2.conf file for django project?

fancy I'm currently deploying a django test project on aws-ec2, the AMI is Ubuntu18.04 with Python 3.6, Django 2.1, Apache2. The project is under /var/www/Project and I am trying to add settings to apache.conf. The project is just generated by django-admin sta

Apache2 doesn't read my conf file

Zephyr I'm used to apache2 and usually I can run it easily. But this time I stumbled upon a problem that I can't get rid of. On my local device I usually use nginx, but I need this modification to the .htaccessfile . So I installed apache2. Both Apache2 and ng

httpd.conf new file location - apache2

something suspicious I am trying to add some security to my website. I've been following this: https://www.tecmint.com/apache-security-tips/ They want me to edit the httpd file, but it doesn't exist in my server. I started doing some more research and I found

Apache2 doesn't read my conf file

Zephyr I'm used to apache2 and usually I can run it easily. But this time I stumbled upon a problem that I can't get rid of. On my local device I usually use nginx, but I need this modification to the .htaccessfile . So I installed apache2. Both Apache2 and ng

Can apache2 work without a conf file?

Eva Robomatic It happens that the apache2 conf file contains env vars with passwords and other valuable data. After starting apache2, I deleted the conf file. I know that to reboot I will have to create these files again. How long will apache2 continue to work

Replacing multiline strings in apache2.conf file using sed

Andrew As part of my Bash server setup script, I'm trying to lock down the default Apache www site. I want to convert it to: <Directory /var/www> Options Indexes FollowSymLinks To this: <Directory /var/www> Options -Indexes -FollowSymLinks -ExecCG

ubuntu /etc/apache2/conf enabled upload file

ghost / etc / apache2 / conf-enabled Here I try to upload my script (sstmx) via winship but I get an error, I also tried these promos along with Ubuntu version 16.04 sudo chmod g+x /etc/apache2/conf-enabled/ sudo chmod 775 /etc/apache2/conf-enabled/ I don

Apache2 doesn't read my conf file

Zephyr I'm used to apache2 and usually I can run it easily. But this time I stumbled upon a problem that I can't get rid of. On my local device I usually use nginx, but I need this modification to the .htaccessfile . So I installed apache2. Both Apache2 and ng

Apache2 doesn't read my conf file

Zephyr I'm used to apache2 and usually I can run it easily. But this time I stumbled upon a problem that I can't get rid of. On my local device I usually use nginx, but I need this modification to the .htaccessfile . So I installed apache2. Both Apache2 and ng

Replacing multiline strings in apache2.conf file using sed

Andrew As part of my Bash server setup script, I'm trying to lock down the default Apache www site. I want to convert it to: <Directory /var/www> Options Indexes FollowSymLinks To this: <Directory /var/www> Options -Indexes -FollowSymLinks -ExecCG

Can apache2 work without a conf file?

Eva Robomatic It happens that the apache2 conf file contains env vars with passwords and other valuable data. After starting apache2, I deleted the conf file. I know that to reboot I will have to create these files again. How long will apache2 continue to work

How should I write fail2ban -> apache-badbots.conf rules?

Albar I often have to add new rules to the apache-badbots.conf file every time I suspect it is no longer valid... For example, here is my current apache-badbots.conf file: [Definition] badbotscustom = MQQBrowser|LieBaoFast|Mb2345Browser|zh-CN|python-reque