asked on
Virtual Host Entry and Apache2 Explanation needed
I am working on recreating a legacy application (localhost mode) in order to update it.
It uses Symfony1-1.1.7 and Apache2.4 on a Ubuntu 20.04. I have a virtual host entry that I do not understand - I know what I am reading - but there was no folder '/var/www/maintenance' included with the zippy file containing the software.
I understand a bit about being able to have Apache 2 create a password file and that there are 3 types of authentication. The legacy project uses SSL and I have that mod enabled, I have a default-ssl.conf file enabled (/etc/apache2/sites-available). Apache2 reloaded/checked status and shows shows no errors etc.
Can someone explain what this is ?
<Directory /var/www/maintenance>
# how to authenticate a user
AuthType Basic
AuthName "iDoghome"
AuthUserFile /etc/apache2/auth/iDoghome.com
require user Doghome
Deny from All
</Directory>
Is my understanding that a sub-folder, auth, was created under the /etc/apache2 folder and a password file called 'iDoghome.com' was created ?? And that the directory '/var/www/maintenance' is restricted from anyone who does not have the correct password?
You have to have the reference system to check .
ASKER
I decided one of the ways to get a good grip on this legacy application was to study and understand the config files and virtual host entry.
They did not include directory /maintenance nor the the password file. Atleast I have not fund it yet and I doubt it was included in the zip file either. Looked and looked - no find.
I also have a missing directory from the project, the /var/www/html as well as the /var/www/maintenance directory.
I know with symfony, the kickoff page is usually index.php but it doesn't work at this point.
It is a legacy symfony project - 1.1.7.
Still have a few questions and soon will be posting them if I do not find the answers to my questions.