Apache configuration is text based configuration file (or set of files) which are used to configure apache httpd web server
Questions tagged [apache-config]
264 questions
2
votes
1 answer
How do I configure apache - that has not got mod_expires or mod_headers - to send expiry headers?
The webserver hosting my website is not returning last-modified or expiry headers. I would like to rectify this to ensure my web content is cacheable.
I don't have access to the apache config files because the site is hosted on a shared…

Ascuseme
- 31
- 3
2
votes
2 answers
Apache 2: issue redirecting root url from http to https
I have an issue redirecting from the http site to the https site.
This index.php file is in the root folder, redirecting to a suburl:
the url https://www.example.com is correctly redirecting to…

Daniele B
- 19,801
- 29
- 115
- 173
2
votes
1 answer
Is there a way to get client remote ip in appache config?
I have a folder "my_files" on my server (Apache 2.4.29 Ubuntu) that holds files with the client id as filename. Example: my_files/92.4.56.125
Now just clients with matching ip address should be allowed to download the corresponding file.
In…

DanCeg
- 31
- 4
2
votes
2 answers
Is there a way to configure Apache to auto-recognize URLs for Django vs React without hard-coding each endpoint?
We're using Apache 2.4 with React 17 and a Django 3.2 (Python 3.9) application. Curious about a better way to set up our Apache configs to route requests to the React and Django apps. Right now, our Apache virtual hosts file hard-codes which…

Dave
- 15,639
- 133
- 442
- 830
2
votes
1 answer
Can I configure Apache to redirect at a specified timeout?
I How to configure Apache so I can redirect to another page on a specified TimeOut. Is this possible?

niels
- 245
- 3
- 14
2
votes
1 answer
Phusion Passenger - route exists but is not matched (gives 404 instead)
I'm running a rails 3 app at the root level in a phusion passenger environment (CentOS, apache) and having difficulty getting passenger to find some routes, although rake routes shows the routes correctly. Everything works fine in development (i.e.…

Chris
- 63
- 7
2
votes
1 answer
acme challenge failed. Invalid response from http://service.domain1.com/.well-known/acme-challenge/xWsuGIi0JmuEuDzS5qPkVX3oHuzY2kNl0YGoU6HltRg
When I try to execute the command to add Lets Encrypt SSL Certificate for the following, I am getting an error. Could you please help me to correct the issue.
Command run on the server to activate the LetsEncript SSL certificate
sudo certbot run -a…

Charles George
- 29
- 1
- 2
2
votes
2 answers
Server configuration for high traffic website
I'm managing a hosting server and one of my customers will launch a high traffic PHP website. It's a penny auction website and we expect between 25k and 30k visitors per day.
Can you tell me please what should I change in my server configuration…

bnabilos
- 2,234
- 4
- 23
- 30
2
votes
3 answers
How to redirect different sub domain requests to different servers
Under my domain, one of the subdomain must be directed to one server that hosts the relevant applications, and the rest must be directed to another server that hosts the relavant applications.
So, any requests to the url appa.example.com\* must be…

Graviton
- 81,782
- 146
- 424
- 602
2
votes
3 answers
Apache Windows httpd.conf AccessFileName problem
I am using Apache 2.2.17 for Windows. To set up .htaccess file, when I was going through httpd.conf file, I was not able to find the word called “AccessFileName”. I believe there should be a line like this: AccessFileName .htaccess. How can I solve…

Alfred
- 21,058
- 61
- 167
- 249
2
votes
1 answer
Conditional declaration in Apache httpd
We want to be able to set Cache-Control headers based on User-Agent in Apache
For example, if a User-Agent contains substring foo we want to set Cache-Control to 10 minutes. But if not set it to 1 day.
Searching around, I've found BrowserMatch, but…

sligocki
- 6,246
- 5
- 38
- 47
2
votes
0 answers
Is there a way to fetch Apache environment variables in React Js?
I am serving the react application through Apache. For SSO (Single Sign On) , I am using Apache based authentication. So the flow is whenever a user hitting the application URL , Apache will take care of getting the user information from SSO server…

1stenjoydmoment
- 229
- 3
- 14
2
votes
1 answer
how to configure apache to view hidden (`.`) files?
How do I make a directory listing in apache show the ./hidden files? I tried both
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from…

Claudiu
- 224,032
- 165
- 485
- 680
2
votes
1 answer
Running multiple Django projects under mod_python, without using VirtualHosts
I have two django projects on the same machine. They are set up using the standard django/apache/mod_python configuration, basically:
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv…

David Montgomery
- 179
- 1
- 5
2
votes
1 answer
Run both Django and PHP application in Apache
I'm trying to host Django and PHP(wordpress) app in Apache
domain.com, should point to Django app
domain.com/wp, should point to wordpress app
Here is my 000-default.conf in /etc/apache2/sites-available
DocumentRoot…

Satish Ravipati
- 1,431
- 7
- 25
- 40