Questions tagged [apache2]
The Apache HTTPd Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)
1,802
questions
0
votes
1
answer
56
views
singular access log entry without leading slash
When tracking down a PHP notification of WordPress in canonical.php where parse_url() created an array without 'path' entry, we found this related line (with a corresponding 301 redirect) in access ...
0
votes
1
answer
87
views
Ubuntu LAMP server disconnects after some time
I am trying to move my websites from shared hosting to the vps I rented, so I am trying to set up LAMP stack. After installing all, the server works fine at start, when I visit it's IP address on ...
0
votes
0
answers
189
views
how to undo 'Alias' in Virtualhost
I wanted www.domain1.tld/domain2 to point to /www/directory2
So I added an 'Alias line' to my Virtualhost config apache2/sites-available/domain1.conf like this:
<VirtualHost *:80>
...
0
votes
2
answers
3k
views
How to use 2 IPs on one Apache server
I have two IPs (and domains) on my dedicated Linux server (Debian). I'm able to access the primary domain. But when I try to access the 2nd one, I'm directed to the primary site.
In /etc/network/...
1
vote
1
answer
129
views
HTTPS subdomains not redirecting for non-wildcard cert
How do I set it up such that https://anything.example.com redirects to https://example.com properly?
My current setup goes like this:
http://example.com --> https://example.com
http://subdomain....
0
votes
0
answers
507
views
Apache maximum memory size per child
Running apache 2.0 on ubuntu 14.04 (MPM prefork), I'm seeing multiple child workers with variable "RES" megabyte values (as expected). While I have plenty of RAM to handle all of these processes (i.e. ...
-1
votes
1
answer
4k
views
How do I only reverse proxy php files with nginx?
Currently I have the following in my nginx config file:
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name envy.zone;
...
2
votes
1
answer
12k
views
sudo yum install apache2 on amazon linux fails [closed]
I've tried running the command:sudo yum install apache2 and got the following error:
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00 ...
0
votes
1
answer
621
views
Why `apache2 -k graceful` gives this error?
I know the thread Apache2 config variable is not defined but here the problem is most probably about ownership/permissions of the newly created user, see the bottom of the thread for the hypothesis of ...
-5
votes
1
answer
361
views
How to block unknown browsers in .htaccess?
I wanted to know that How to block unknown browsers in .htaccess? There is a Directive that can be used in .htaccess called BrowserMatchNoCase but I do not know how to work with it.
7
votes
3
answers
5k
views
How can I remove IP addresses from log files after some time
I have an apache/nginx/whatever web server which logs client IP addresses to the access logs. Now these log files are rotated via logrotate.
I want to keep the IP addresses for some days, then after ...
7
votes
2
answers
3k
views
Apache's htcacheclean doesn't scale: How to tame a huge Apache disk_cache?
We have an Apache setup with a huge disk_cache (>500.000 entries, >50 GB disk space used).
The cache grows by 16 GB every day.
My problem is that the cache seems to be growing nearly as fast as it's ...
2
votes
2
answers
245
views
DNS: make www.example.com point to www/site/
I have a vps where a website is hosted on var/www/site rather than the usual var/www. I want a domain to point to var/www/site rather than var/www. Not sure what to put in the zones file.
any hints?
1
vote
1
answer
2k
views
Permissions to use for Wordpress on Ubuntu with Webmin
What are the best permissions for a Wordpess install on Ubuntu managed by Webmin? Currently, root owns all the files and all of the files are also set to the root group. I'm using the virtual server ...
287
votes
7
answers
742k
views
command for checking Apache configuration
I'm looking for a command that checks the validity of the config files in Apache server on both Debian and RHEL distros. I need to do this prior to restart, so there will be no downtime.