471,072 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,072 software developers and data experts.

apache2 Virtual Directory and Subdirectory

1 Bit
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 1620
Niheel
2,452 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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.