Skip to content

Tag: apache

Apache Access Control to IPs (X-Forwarded-For) or valid-user

I used to block access to certain folder of my Apache server using valid-user or ip directive, like the following: Now, I have placed my server behind an F5-BIGIP device which won’t let me fully DNAT client’s connections. The device is also behind a Linux server that serves as gateway with DNAT/SN…

What is the opposite of mod_wsgi-express start-server

I accidentally closed the terminal after running this command And I can’t find the resource on how to stop the server What is the command? Answer The solution I opened terminal and killed the process via the pid I opened the terminal and ran the following code to get the pid of the process This is a sam…

How to access website on a Linux server in Azure? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

Accessing files outside the root directing

My client asked me to do a website where a user can enter a path on the machine, PHP should scan the path and load all the media files in the directory and subdirectories. The user can enter any path, Desktop, or external drives, whatever, outside the root directory. That’s what the client wants and he&…

Apache & SFTP permissions on AWS EC2 Linux hosting

Using SSH I’ve granted access to my SFTP clients user “ec2-user” with the following command: sudo chown -R ec2-user /var/www/html However I also need to grant access to Apache which I can do with the following command: sudo chown -R apache:apache /var/www/html I assumed this would grant acce…