docker-library / httpd

Docker Official Image packaging for Apache HTTP Server
https://httpd.apache.org
Apache License 2.0
310 stars 345 forks source link

Can't find Apache files #223

Closed Gitricity closed 2 years ago

Gitricity commented 2 years ago

Hi. I've set up Apache on Docker using the official image and commands. I can only access the Server through sftp and terminal. The Service set up fine but now when i am accessing the Server through the Browser on Port 8080 it says "Forbidden You don't have permission to access this resource." and i cant find any apache Folder under "user/local" and also not in the docker container/volume. Can anybody help me there?

wglambert commented 2 years ago

The Apache2 files are in /usr/local/. It might be an issue with the httpd.conf configuration

$ docker run -it --rm httpd bash
root@19ae0472527c:/usr/local/apache2# ls -l /usr/local/apache2/
total 40
drwxr-xr-x 2 root root 4096 Oct  5 04:10 bin
drwxr-xr-x 2 root root 4096 Oct  5 04:10 build
drwxr-xr-x 2 root root 4096 Oct  5 04:10 cgi-bin
drwxr-xr-x 4 root root 4096 Oct  5 04:10 conf
drwxr-xr-x 3 root root 4096 Oct  5 04:10 error
drwxr-xr-x 2 root root 4096 Oct  5 04:10 htdocs
drwxr-xr-x 3 root root 4096 Oct  5 04:10 icons
drwxr-xr-x 2 root root 4096 Oct  5 04:10 include
drwxr-xr-x 2 root root 4096 Oct  5 04:10 logs
drwxr-xr-x 2 root root 4096 Oct  5 04:10 modules

You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum