Alias works for subdirectories to the DocumentRoot
oops.se
So I suspect the indexing
generalkenobi_2
as in the autoindexing feature is breaking it?
oops.se
perhaps
generalkenobi_2
in my shoes how would you approach this? stackexchange? or github problem report
generalkenobi_2
hmmm
generalkenobi_2
I could just disable the indexing.
oops.se
Since I have no knowledge about autoindexing idk
generalkenobi_2
hold on, let me try that
oops.se
Is that a mod in Apache2?
generalkenobi_2
yeah, there's a config for it, but i was just going to comment out the options line for that directory
generalkenobi_2
same result
generalkenobi_2
after reload
oops.se
Stack exchange has probably someone that has knowledge on this topic
generalkenobi_2
do you use other methods to host via http?
generalkenobi_2
rather than apache
oops.se
I have used nginx in the later years.
oops.se
But I mostly make jump pages and status pages with data connections
generalkenobi_2
I use nginx to reach this server.
generalkenobi_2
not as a web host however
generalkenobi_2
reverse proxy
oops.se
Well that is the nice thing with open source, there are many roads to Rome
generalkenobi_2
actually, on that note.
generalkenobi_2
is there anything in nginx that would snag a forward and not pass it because it contained .jpg or .gif?
generalkenobi_2
because I did note that apache didn't even acknowledge it got those requests
generalkenobi_2
omg it isn't
generalkenobi_2
that's why
generalkenobi_2
it's not an apache issue
generalkenobi_2
it's an nginx issue
generalkenobi_2
Not Found
The requested URL was not found on this server.
Apache/2.4.57 (Debian) Server at generalkenobi2.duckdns.org Port 81
generalkenobi_2
if i try to access /public/b
generalkenobi_2
if i try to access /public/a.gif (which is actually there)
generalkenobi_2
404 not found
generalkenobi_2
generalkenobi_2
generalkenobi_2
number 2 being b.gif
generalkenobi_2
totally different response
generalkenobi_2
lol so you know nginx?
oops.se
A bit
generalkenobi_2
I think i found the issue. just trying to find where it is.
generalkenobi_2
in the config
generalkenobi_2
[root@docker-641bd6674e6e:/etc/nginx/conf.d/include]# cat assets.conf
location ~ ^.\.(css|js|jpe?g|gif|png|webp|woff|eot|ttf|svg|ico|css\.map|js\.map)$ {
if_modified_since off;
# use the public cache
proxy_cache public-cache;
proxy_cache_key $host$request_uri;
# ignore these headers for media
proxy_ignore_headers Set-Cookie Cache-Control Expires X-Accel-Expires;
# cache 200s and also 404s (not ideal but there are a few 404 images for some reason)
proxy_cache_valid any 30m;
proxy_cache_valid 404 1m;
# strip this header to avoid If-Modified-Since requests
proxy_hide_header Last-Modified;
proxy_hide_header Cache-Control;
proxy_hide_header Vary;
proxy_cache_bypass 0;
proxy_no_cache 0;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504 http_404;
proxy_connect_timeout 5s;
proxy_read_timeout 45s;
expires @30m;
access_log off;
include conf.d/include/proxy.conf;
generalkenobi_2
bet this is it.
generalkenobi_2
i fixed it.
generalkenobi_2
had to remove those extensions from this assets config in the nginx proxy server