Forum Moderators: phranque

Message Too Old, No Replies

Change directory / of apache2 server

I want to change the directory /var/www/html to /home/carlos/test

         

gatoher

6:27 pm on Jul 4, 2023 (gmt 0)



Hello everyone, I am trying to get apache to read a website that I have in /home/carlos/prueba at the same time that I have others in /var/www/html. I have changed in apache.conf the following:


<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /home/carlos/prueba/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/>
Options Indexes
FollowSymLinks
AllowOverride None
Require all granted
</Directory>



Then create a virtualHost I have it like this:



<VirtualHost *:80>

ServerName prueba.ddns.net
ServerAdmin xxxxxxxxx@gmail.com
DocumentRoot /home/lucas/prueba/



The permissions of /home/lucas/test are at 777 because I don't care, but it can't find the path.

not found

The requested URL was not found on this server.

I'm working on ubuntu 22.10 and my apache version is Apache/2.4.54 (Ubuntu). Any ideas what I might be doing wrong?

not2easy

7:00 pm on Jul 4, 2023 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi gatoher and welcome to WebmasterWorld [webmasterworld.com]

Have you checked the documentation available for LAMP installs? Ubuntu offers good information: [ubuntu.com...]

There are other members here who might have your perfect answer but I have not worked on anything Ubuntu for a very long time and can't really help much, sorry.

gatoher

2:39 pm on Jul 5, 2023 (gmt 0)



Hi not2easy, I've already looked at the Ubuntu documentation. The truth is that I have looked there and in several places. I have it as it has to be done, unless I haven't realized something.
This Saturday I will dedicate the afternoon to see if I can find where the error is.
Thank you