468,167 Members | 1,931 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,167 developers. It's quick & easy.

apache2 Virtual Directory and Subdirectory

1
so i have a Virtual directory in /opt/aweb/ in-which work just fine, i also have subdirectorys that i need to be able to get to with http://aweb/subdir/ whenever i try and goto these directory's and they exists , i am getting.. 404 - File or directory not found.

The resource you are looking for might have been removed,

can someone help me out.

in my 000-aweb.conf i also have

<Directory /var/aweb/>
Options -Indexes +FollowSymLinks +MultiViews Allow-override All Require all granted
</Directory>

<Directory /var/aweb/subdir>
Options -Indexes +FollowSymLinks +MultiViews Allow-override All Require all granted
</Directory>

thanks
Mar 8 '21 #1
1 1394
Niheel
2,418 Expert Mod 2GB
Technically, you shouldn't need virtual directory declarations the way you are referencing the URLs:

http://aweb/ --> /var/aweb/

http://aweb/subdir --> /var/aweb/subdir

The sub-directories should work with just the first declaration.

For consistency, you are missing the forward slash at the end of the subdirectory "/var/aweb/subdir"
Mar 10 '21 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Wm. Scott Miller | last post: by
7 posts views Thread by Jaydeep | last post: by
2 posts views Thread by Danny Miller | last post: by
4 posts views Thread by david | last post: by
6 posts views Thread by Saar Carmi | last post: by
5 posts views Thread by Stu Carter | last post: by
6 posts views Thread by Scott M. | last post: by
reply views Thread by kamranasdasdas | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.