Questions tagged [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)

Filter by
Sorted by
Tagged with
0
votes
2answers
1k views

apache ScriptAlias and cgi-bin non default usage for twiki configuration

I am setting up twiki configuration with apache and having issues with htpasswd not working. I have set the passwd prior and stored in /var/www/twiki/data/.htpasswd file. Configuration is shown below. ...
7
votes
3answers
6k views

What does the apache Satisfy directive do?

I stumbled upon a httpd.conf directive that I can't manage to understand: <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> According to the doc , I would say ...
0
votes
0answers
12 views

Multiple instances mapping hosts by port

I am trying to setup a dev environment where I can enter: project1.com in a browser and goto a specific directory. project2.com would go to another directory. The challenge is, I am using laravel ...
66
votes
5answers
113k views

How do I redirect subdomains to a different port on the same server?

I have some subdomains I want to redirect to specific ports on the same server. Say I have dev.mydomain.com I want dev.mydomain.com to transparently redirect to mydomain.com:8080 and I want to ...
0
votes
3answers
1k views

Make Apache send a copy of requests to a script

Let's say we have a huge list of clients (~30) all running on the same server under different users (and other security settings). I need to write a "spy/logging" script which is able to handle all ...
0
votes
2answers
1k views

centos 6 apache hangs/freezes but it is still running, have to restart to work php pages

I have a new server and it's acting strange. Apache seems to work fine for a few minutes, sometimes more than a few minutes, but then it hangs/freezes and php pages are not accessible. It's as if ...
0
votes
2answers
1k views

How do I funnel all my EC2 apache logs to one server

Is the best way to get all my EC2 Web Server Instance Apache Logs in one place, to create a "LogServer" EC2 Micro instance and point all the Apache Configs to it? Not sure how to do this and ...
0
votes
1answer
1k views

How to use Apache to redirect to IIS on a different port?

I have Apache configured with jk_mod to redirect to several instances of tomcat. Apache is listening on port 80, and depending on the URL it receives it will redirect to a different tomcat instance (...
1
vote
1answer
1k views

Apache2 crash after SSL install

I'm trying to install ssl on my apache2 ubuntu 14.04. After I install all my credentials and restart my apache I get caught SIGTERM shutdown There is no more error or explanation. I created a ...
0
votes
1answer
1k views

apache ext filter not working

following the docs at :http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html Cant get a simple filter to replace text on the page... ExtFilterDefine fixtext mode=input cmd="/bin/sed s/works/sorta/...
2
votes
1answer
1k views

Ubuntu unattended-upgrades stops apache

This morning i was alerted to the fact that both apache instances serving my app were not responding to requests from my load balancer. I attempted apachectl restart and it said apache was not running....
0
votes
2answers
962 views

Apache2 mixing forward and reverse proxy

I upgraded apache2, which behaves different now. I want to mix a forward proxy, only accessable from the intranet and a reverse proxy which should be accessable from the internet. What happens is ...
0
votes
1answer
1k views

500 Internal Server Error when setting up Apache on Ubuntu+Django

I tried with Apache on ubuntu 9.04 and get the same error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact ...
2
votes
1answer
1k views

Using mod_rewrite got some File does not exist messages in Apache logs

My mod_rewrite rules are working fine but sometimes similar errors showing up in my error logs: File does not exist: /var/www/examplesite/exampleurl Of course the requested directory doesn't exists, ...
0
votes
1answer
1k views

Apache RewriteEngine, redirect sub-directory to another script

I've been trying to achieve this since about 1.5 hours now. I want to have the following transformations when requesting sites on my website: homepage.com/ => index.php ...
0
votes
1answer
1k views

Redirect particular hostname from https to httpd in httpd/apache2

I have a webserver that has an ssl certificate applied to a subdomain https://shop.mydomain.com. I also have the hostname http://mydomain.com that has no ssl certificate. When invoking https://...
0
votes
0answers
6 views

Apache reply with 408 timeout instead of 403

Reading the access log of apache of one of our server I've found that some ips connecting to it receive a "408 Timeout" response instead of "403 Unauthorized". This is one line of the access log: [...
9
votes
1answer
1k views

Using Squid as a maven repository

Does someone know how to use Squid to proxify maven repositories ? What are the configuration files for that ? The main problem is that maven client issue HTTP request with headers which control the ...
0
votes
1answer
60 views

Apache 2.4 Rewrite rule based on Header value

trying to do http to https based on header value of the request but failing some how.can some one help me here. request is if a header value is xyz and it is equal to Y then serve http pages,for all ...
0
votes
1answer
1k views

Logging response headers in Apache reverse proxy without sending them to the client

We use serveral Apache servers as reverse proxy in front of numerous backend servers. The backend servers send a HTTP response header ("Cast") which contains an internal name of the backend server. ...
1
vote
1answer
1k views

Apache 2.2.4 Proxy Balancer Extremely Slow When a Balancemember is down

I am using apache 2.2.4 as a reverse proxy server in my DMZ. The Proxy Balancer appears to work great when the two BalancerMember servers are up. But if I shut one down, It takes roughly 30-45 seconds ...
0
votes
1answer
14 views

Apache random 403 errors

We are using php 5.4 and a custom php page . When there is concurrent 300 users for some of the requests it throws 403 forbidden. This page does not use db connection . The apache maxclients is set ...
9
votes
4answers
13k views

Does is matter in what order rules are placed in htaccess?

I hope this is a simple YES or NO answer (please specify why) Q1: Does is matter in what order the rules are placed in htaccess? Since they are completely separated items: for example Q2: If yes, am ...
0
votes
2answers
1k views

How can i protect my php files on a server (chmod ?)

I have a dedicated server, on this server i have two vhosts. and i will give the access of the server to two people. In my php file there's the database password and i don't want to share that with ...
0
votes
2answers
1k views

“deny all” for all files in a directory

My server is getting hit hard by bots, etc., looking for various files in /cgi-bin/, like search.cgi, YaBB.pl, gitweb.perl, perl, gitweb.pl, htsearch, and on and on. I want to deny all access (send a ...
0
votes
1answer
1k views

Apache thread MEMORY Usage

I am facing an issue over the site i am working on, even in very low load of around 10-20 page views per second, the CPU usage maxes out, with all cores running at 100% plus the apache thread memory ...
1
vote
1answer
1k views

apache proxy installation

I am having problem installing the proxy_html for apache on an OpenSuse. It looks like the module is installed: a2enmod proxy_html "proxy_html" already present and in /etc/sysconfig/apache2 I have ...
2
votes
2answers
1k views

Securing PHP's exec and others

I'm currently setting up an hosting service and, for now, i'm very concern about security. Here is my situation : I've set up multiple apache's vhost and for obvious security reason, i don't want to ...
0
votes
3answers
1k views

mod_evasive apache module configuration issues

I have configured mod_evasive to not block google bot's IPs. But it's still banning google bots. Here is my configuration in /usr/local/apache/conf/httpd.conf: <IfModule mod_evasive20.c> ...
0
votes
0answers
37 views

Is it good practice to keep .php files out of /var/www/html or /public_html [on hold]

I've read that you can put php files outside of the document root of virtual hosts and that it can prevent people from accessing the .php files as well as prevent people from being able to download ...
1
vote
1answer
1k views

Kerberos authentication not working for one single domain

We have a strange problem regarding Kerberos authentication with Apache mod_auth_kerb. We use a very simple krb5.conf, where only a single (main) AD server is configured. There are many domains in the ...
0
votes
1answer
1k views

What is the alternative of Apache's global Alias in IIS instead of adding a Virtual Directory to every single sites one by one?

In Apache, there's a way I can make phpMyAdmin available globally to all VirtualHosts I set up. In Apache, it looks like this: <IfModule mod_alias.c> Alias /phpmyadmin "c:/AppServ/www/...
0
votes
1answer
1k views

Setting the document root in godaddy virtual server

HI, I am not familiar with setting up servers. I want to set up the document root to point to another directory. This is not mod rewrite for URL's that I am trying to do. Is it a httpd.conf file or a ...
1
vote
1answer
1k views

Clean Url problems WIth ubuntu apache , php-fpm, fastcgi

Well this is a kind of repost of this, but no one has replied to my question so far, so I am here. I am using Apache/2.2.17 (Ubuntu) mod_fastcgi with php-fpm and I can't enable clean URLs as the site ...
0
votes
1answer
1k views

Apache ignoring Server Alias and going to first virtual host

I'm having problems getting my ServerAlias domains to work correctly. apache2ctl -S gives: IP.ADDRESS:80 is a NameVirtualHost default server byteinsight.net (/etc/apache2/sites-enabled/000-...
0
votes
1answer
1k views

AddHandler PHP for HTML on CentOS

I have installed apache and PHP from Yum on CentOS 6.3 I'm trying to get PHP to be parsed in .html files-- but I can't seem to figure it out. I have set AllowOverride All in httpd.conf and then in ....
9
votes
2answers
19k views

How do I set proper Headers for JSON in Apache?

I have an Apache server which is serving out static JSON files. The Content Type is correctly being represented in the header with an Content-Type: application/json header. How do I add the correct ...
2
votes
1answer
1k views

Reverse Proxy (mod_rewrite) and Rails (absolute paths)

I have front end rails app, that reverse proxies to any of a number of backend rails apps depending on URL, for example http://www.my_host.com/app_one reverse proxies to http://www....
3
votes
1answer
1k views

mod_mono install in apache ubuntu 10.10

I have installed mod_mono and apache as per the instructions mentioned in http://blog.ruski.co.za/page/Install-Mono-on-Ubuntu.aspx when i run i also get the error message mentioned towards last. ...
0
votes
2answers
1k views

Nginx/Apache not accessible from outside, SSH is accessible. Firewall disabled

I have ports 37000-37100 redirected to my computer. SSH is accessible when listening on any of these ports (by default I'm using 37022, but tried on 37080 and it's OK). I can only access Nginx on a ...
0
votes
1answer
1k views

CentOS 6 Mono and Apache

EDIT: Added some extra logs at the end I'm trying to make Mono 3.0 work on CentOS 6 with Apache. I have compiled Mono, mod_mono and the XPS server from the source. But now I'm getting errors because ...
0
votes
1answer
1k views

Kerberos SSO virtualhost different domain

I have a running centos6.6 server who authenticates against a windows 2008 AD with realm EXAMPLE.LOCAL. I have successfully configured an apache webserver for authentication through kerberos keytab ...
2
votes
0answers
609 views

nodejs app with apache2 server always shows 503

I have an apache2 server which runs all my php web application and I am trying to run a nodejs application. I have enabled proxy and proxy_http but it always shows 503 service unavailable page <...
23
votes
3answers
26k views

Apache file negotiation failed

I'm having the following issue on a host using Apache 2.2.22 + PHP 5.4.0 I need to provide the file /home/server1/htdocs/admin/contents.php when a user makes the request: http://server1/admin/...
0
votes
2answers
1k views

Apache root URL redirects to double slash

I have a vhost that needs to redirect / to /app and I use following to accomplish that in vhost.conf: RewriteEngine On RewriteRule ^/$ /app [R] but it's giving me hard time since users get http://...
0
votes
1answer
1k views

apache , php , sendmail not working

I am using apache, php and sendmail. I can send mail from command line with sendmail. However, in php file, mail function is not working. Then, I run that php email test file from command line. It ...
0
votes
1answer
1k views

Apache 2.2, worker mpm, mod_fcgid and PHP: Can't apply process slot

We're having an issue on an apache server where every 15 to 20 minutes it stops serving PHP requests entirely. On occasions it will return a 503 error, other times it will recover enough to serve the ...
0
votes
1answer
1k views

Apache reverse proxy removes headers from webdav server

I have been using Davenport+Tomcat through an Apache AJP reverse proxy for several years and it has been a great help in my institution. I would like to migrate to SAMBADAV maintaining the same ...
-1
votes
0answers
14 views

How to configure Laravel with apache2 with port number on Ubuntu?

I have Laravel API project to run with port 8000. I want to deploy this on dedicated server. After that I want to access with IP and Port number (http://123.12.32.1:8000). This is the current ...
2
votes
1answer
1k views

Real IP addresses from Varnish + Cloudflare

I'm trying to edit the default.vcl file to get the real client IP addresses to show up in my Wordpress. I found this online and I read a lot of pages on this but have failed to make this work. I'm ...