Questions tagged as ['apache-2.2']

Version 2.2 of the Apache HTTP Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)
Score: 0
mahen3d avatar
Apache - Give Access to /var/log/ folder Only Outside the Document Root ? (Centos Based)
cn flag

My Web server is running on Apache and I have restricted the Apache user not to allow anything outside the Website Document Root, However, I need to write a log file (User Auth Log) which needs to be written into a folder of the "/var/log/app"

How do I achieve this task in Centos7? Should I use a symlink? if so Can that be secure enough? because this log file will contain very sensitive data about the u ...

Score: -2
trapp avatar
How to configure two addresses to access other frontends/port
cn flag

How do I configure two addresses to access other frontends / different ports, for example:

Address Mapping to (nodejs) localhost:3000 (django) localhost:7000
Score: 0
whuykvpp avatar
Preventing redirects for file serving in apache
cn flag

I am working with a specific proprietary (and no longer properly supporter) http client, and it has an issue of giving up on trying to download files if an http server throws a 301. I am using mod_speling with CheckSpelling On and CheckCaseOnly On, and what I am describing happens when a request is made with the path, for example, being /documentroot/Media/audio.mp3, while the actual path is /docum ...

Score: 0
Chandan Singh avatar
Fail2ban regex for multiple IPs which includes LB IPs into it
tr flag

Struggling with the correct regex for the below log which I am not able to parse to get it working with fail to ban. I need XX.XXX.XX.XX to be checked via fail2ban. Please assist which me the correct regex.

XX.XXX.XX.XX, yy.yyy.yy.y, zzz.zz.z.zz - - [29/Jun/2020:11:12:14 +0000] "GET

Score: 0
PHP website not working as expected in NGINX but working in Apache
cn flag

Hi I just created a link shortening app. But when I try to redirect a shorten link to the full URL which is shared on Facebook it is not working as expected. for example : this link is working fine but if i share the link in Facebook and and the link will be like this This link is not re ...

Score: 0
Z D avatar
how to do 301 redirects from old site to new
in flag

I have a website which is on Wordpress and on its own IP/Server

It has various pages which are ranked on google which I'd like to preserve.

I have a new website which is configured using APACHE2 Vhosts and is also on its own IP/Server

How do I do 301 redirects? Do I do the 301 redirects in Wordpress on or do I change its ...

Score: 1
jcnoe avatar
Uniform Server cron not executing php script
cn flag

I'm running Uniform Server Zero XIV and am trying to use the cron to run a php script every 15 minutes. When ran manually, the script does what it is supposed to, which is updating values in a database. However, the cron never seems to actually execute the script.

The cron log is indicating that the crontab has the correct path and is executing.

10/06/2021 12:53:08  - Run OK --- C:\Users\myuser\Zero\U ...