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,794
questions
1
vote
2
answers
2k
views
Apache Rewrite Rule on Dispatcher
How can I do a rewrite rule for both http://example.com/abc to rewrite/redirect to http://example.com/abc.html but it should work when I have the URL as http://example.com/abc/def.html. Currently when ...
1
vote
2
answers
1k
views
fail2ban Regex for POST not firing
So i am trying to rate limit POST requests on my server. I have looked around and tried every permutation of strings that i can find on the internet.
this is my jail.local apache conf
[apache-...
0
votes
3
answers
570
views
Is it normal for Non-SSL site to return 'Unable to connect' when accessed via HTTPS://
I'm speaking only about servers that doesn't have any SSL certs (self-signed or by authority).
Is it normal for site that doesn't have anything about SSL (default config, clean installed apache/nginx)...
0
votes
1
answer
48
views
Apache RewriteEngine affect Tomcat access
There is the problem,
I have configured htaccess to rewrite all access for http to https, its ok.
But i need make a exception for Tomcat on 8080 port.
My .htaccess:
RewriteEngine On
# Redirect all ...
0
votes
1
answer
941
views
Send SSL requests to localhost:port using apache
I'm running a meteor application, due to restrictions I must use Apache as the webserver. There are also other existing websites hosted on the same domain under different locations e.g. https://...
1
vote
1
answer
2k
views
nginx as reverse ssl proxy (Apache + Varnish) skips its own configuration
I have a new Ubuntu 14.04 installation with the following steps taken:
Apache2 2.4.7
MariaDB last stable version
PHP 7.0.9 (and several modules)
Apache configured to work with PHP7-FPM *
mod_rpaf ...
0
votes
1
answer
23
views
File on doc root won't change unless path changes
I found strange problem about my server/ apache.
I make change of content of some files, lets say, on var/www/test-app/index.html. when I visit the browser: http://localhost/test-app/index.html, the ...
1
vote
1
answer
3k
views
SSL Offloading to Apache2 for Wordpress Site
I have a WordPress site running on a Google Compute Engine instance and SSL used to be setup inside Apache.
Since SSL and image resizing was placing a lot of strain on that instance, I've setup a ...
0
votes
1
answer
2k
views
Apache error log permission issue after deleting in CWP [closed]
I am using CentOS Web Panel (CWP) and Apache as a web server. I have deleted the Apache error_log and recreated one using the command below:
touch error_log
I have successfully created the error_log ...
0
votes
1
answer
567
views
Wordpress, tomcat, apache2 and nginx: redirect loop on wordpress
I've installed tomcat for one website and apache2 for another (wordpress). The problem happens with wordpress website.
There is nginx for reverse proxy and here it is:
server {
listen 80;
...
1
vote
1
answer
55k
views
Apache 2.4 max concurrent users limit
I'm unable to determine, how many users my apache instance can handle.
I installed Apache 2.4.18 from Ubuntu repository, as far as I remember, all settings are default ones.
I did a server stress ...
3
votes
0
answers
4k
views
Is it possible to proxy\tunnle TCP through Apache HTTP web server?
A customer uses Apache HTTP Webserver (AW) to redirect HTTP requests to Apache Tomcat (AT).
I need to add a special servlet to a current application being served by AT. This servlet will just start a ...
0
votes
1
answer
7k
views
Apache2 default page instead of nginx default page [closed]
I set up a Django local server with Nginx, Gunicorn and Ubuntu following this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-...
0
votes
1
answer
70
views
Idiomatic way to serve an internal server and a php directory under the same domain name with apache
I tried many things since yesterday with no good result.
Here is the situation I have an internal server listening on port 4000 and a wordpress directory located in /var/www/html/wordpress.
I use
...
0
votes
1
answer
169
views
Ubuntu server randomly kills Apache2 - I guess I know why
Been weeks, even months, that after a logrotate, my Apache2 server suddenly stops and can't restart, mainly because of the password on the cert. but I do not want to remove it.
At the beginning I ...
0
votes
1
answer
360
views
Two proxypass applications behind apache
I am running two web applications, one is tornado-based and the other one is cherrypy based, behind apache on an opensuse server. Both run on different domains pointing to the same IP. The two ...
2
votes
0
answers
280
views
Apache userdir over Kerberized NFSv4 mount : Forbidden access
I have set up a practical room dedicated to web development learning. Users accounts are managed by a Samba 4 AD and users files are stored in a central NFS server with exports securised by Kerberos.
...
0
votes
1
answer
638
views
https works on webmin but not on domain name [duplicate]
I got an issue with the https request, when it comes to the access webmin, is working fine even the certificates are working pretty good. when i try to access the domain using https is not working. I ...
3
votes
3
answers
957
views
IP address redirects to www.IP address [closed]
I have a Google Cloud Compute instance running a Bitnami Magento stack. For some strange reason if I try to browse to the site via the IP address it prefixes the IP address with www. so fails. The ...
0
votes
1
answer
664
views
Apache2 and Tomcat7 with BASIC authentication (Ubuntu)
I recently deployed a Java webapp on a Tomcat7 fronted by an Apache2 on a Ubuntu 14.04 VPS.
I am connecting the Apache2 and the Tomcat7 with mod_jk.
All the static resources are server by Tomcat, ...
0
votes
1
answer
446
views
Running Ruby on Rails and PHP apps side-by-side under the same (Apache) web directory structure
My company have several apps running alongside on an Apache2 web server which resides on an Ubuntu server.
Our setup includes:
A portal website is set at Apache's document root "/"
Another ...
2
votes
1
answer
4k
views
Apache log : 'myipha.php not found or unable to stat' and others
I recently get in my apache error.log a long set of :
[Thu Jun 30 13:03:22.005214 2016] [:error] [pid 15759] [client xx.xx.xxx.xxx:xxxxx] script '/var/www/html/myiphb.php' not found or unable to stat
...
5
votes
2
answers
6k
views
debugging stuck apache/php thread on production server
I have a linux system with apache httpd and PHP which is loaded using LoadModule php5_module /usr/lib/apache2/modules/libphp5.so.
I've enabled the mod_status module of apache and I see a particular ...
0
votes
1
answer
4k
views
Apache2 reverse proxy to access multiple lan servers from wan
I've got about 5 web applications on different servers running on my LAN, which are all listening to port 80
I would like to make them accessible from the internet by setting up an Apache reverse ...
2
votes
1
answer
5k
views
Lets encrypt SSL certificate in Docker container via nginx-proxy
currently I am using nginx-proxy to route my subdomains to different docker containers. Now, I would like to add a SSL certifcate to my Owncloud container but I am failing to set it up correctly.
...
0
votes
0
answers
190
views
Apache 2.4, 403 on all php scripts, html works
After upgrading from Debian 7 to 8 and therefore from Apache 2.2 to 2.4, I'm facing some issues regarding php scripts. As the configuration files between the apache versions are not compatible, I did ...
2
votes
1
answer
4k
views
Apache 2 Fast CGI php issue
I'm trying to set php5.6.23 as fast CGI on my server for using php7 as main version
but in one of my domain, I get this error :
The requested URL / was not found on this server.
here is my vhost ...
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
188
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
2k
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
505
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
619
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
360
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
242
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 ...
286
votes
7
answers
736k
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.
4
votes
3
answers
25k
views
apache multiviews, how to disable it
I have a OS X Snow Leropard Server running and I want to disable multivewis from Apache. I could add Options -MultiViews to each .htacces file I have, but I guess there must be a global option. ...
63
votes
4
answers
56k
views
Purpose of Debian "sites-available" and "sites-enabled" directories?
Can anyone tell me—in a nutshell—what the purpose of these two directories are in Debian?
/etc/apache2/sites-enabled
/etc/apache2/sites-available
I notice that diffing sites-available/000-default ...