Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.

learn more… | top users | synonyms

0
votes
0answers
12 views

Use PHP to get Apache2 error code [closed]

I'm making a PHP error page and I was wondering if there would be any way I could get the error code that resulted in the error and display it. Then, I could just use the same but have PHP display a ...
1
vote
2answers
32 views

Apache .htaccess - All URLs with different parameters to ONE redirect

I need some help with .htaccess redirect. http://www.example.de/test-music.html?p1=1&p2[test]=23 http://www.example.de/test-music.html?p1=6&p2[test3]=5 ALL of them need to be redirected to ...
0
votes
0answers
16 views

Unable to add new host to Apache webserver

I already have two hosts pointing to my machine, and I am trying to add a third "webmail.user.domain.com, but I receive DNS failure lookup. I created a configuration file for "webmail" with the same ...
1
vote
0answers
22 views

Using mod_rewrite to force users to use our caching proxy

During a recent audit we became aware of several users who have not set their DNS records to correctly point to our name servers. Since we don't control the domain names of our users directly, we're ...
1
vote
1answer
83 views

Redirect https://example.com naked to https://www.example.com

I am redirecting all http:// request to https:// using apache2 virtual host file: <VirtualHost *:80> ServerName example.com ServerAlias www.example.com Redirect / ...
1
vote
1answer
54 views

XAMPP alias or rewrite?

I have a site running on W2012 with XAMPP. I have a live site that was in subfolder /foo. It now needs to be changed to /home. I set up an alias Alias /foo "C:/xampp/htdocs/home" This takes ...
1
vote
1answer
13 views

Apache Vhosts - subdomaining

I am a little new to the apache vhosts configuration and for educational purposes I wish to set up a domain and a subdomain. The domain is already set up under the name example.com. Now I want to ...
2
votes
1answer
33 views

Do you trust timestamps when they are out of order?

When Apache2 log file entries have timestamps that are out of order, do you trust the timestamp or the order? 10.1.10.250 - - [20/May/2015:00:43:53 -0600] "GET /foo/bar_1234.jpg HTTP/1.1" 200 738542 ...
0
votes
1answer
27 views

IP-based redirection using mod_rewrite

I'm running a small VPN server where each user has his own static IP. I set up an Apache server in order to host files for each of them and instead of using a new registration system, I wanted to take ...
0
votes
1answer
13 views

Sites-available inheritance

I'm setting up a subdomain for mobile content that will be hosted on the same server but in a separate root directory (/www/main and /www/mobile). I'm trying to configure the sites-available .conf ...
0
votes
1answer
19 views

FTP connection timeout forces reconnect before every action

I'm uploading and modifying files on my Apache 2 server via FileZilla and after I perform any action, the connection times out after five seconds, so it keeps having to reconnect every time I perform ...
0
votes
0answers
24 views

How to customize LogFormat for Apache Virtual Hosts?

I really need some help with this. My server has multiple virtual hosts, each virtual host has its access log, I need to be able to customize the LogFormat for each virtual host exist on server. I ...
0
votes
1answer
86 views

.htaccess rewrite but keep basic URL

I have basic domain, for example, domain1.com. Also I have domain2.com which is addon domain, and I want to redirect domain2.com to domain.com?parameter=value, which is basically domain1.com, but with ...
0
votes
0answers
10 views

Httpd not rewriting !hostname to hostname [duplicate]

Simple: xxx.xxx.xxx.xxx:443/80 --> https://login.example.com One site, one hostname, one server. So I've done this in the main httpd.conf to avoid virtualhost manips: <Location /> ...
0
votes
0answers
14 views

CGI/FastCGI does not prevent me from reading other users files

I installed mod_fcgid.so for Apache to run every script under its user account. I looked at PHPinfo to see if it is loaded, and it is OK. Now when I try to read file content that belongs to another ...
0
votes
1answer
26 views

Redirecting a domain to another that hosts a wordpress site, getting database errors

Originally I had mydomain.com.au, but then I let it expire as I cancelled my abn. After that I started using mydomain.info instead to host my wordpress site. Recently I had my abn re-instated so I ...
4
votes
3answers
161 views

PHP 5.6.6 loading but not interpreting in Apache2.4 64 bit Windows

I have installed Apache 2.4.12 (Win64) VC11 from Apache Lounge. Typing httpd -M tells me that php5_module is loaded and shared. I have PHP 5.6.6 win32 VC11 Thread Safe installed. The Apache server ...
0
votes
1answer
71 views

Configure Apache virtual hosts - all subdomains to 404

It's the first time that I try to configure apache so I hope you can help me. This is what I want to achieve: All undefined subdomains should lead to not found if they aren't defined Root folder ...
2
votes
1answer
58 views

Redirecting “ugly” urls to pretty ones?

For example to display /id/123 for /urlugly?id=123 I can do RewriteRule ^id/([^/]*)$ /urlugly?id=$1 [L] and apparently for redirect I can add [R] RewriteRule ^id/([^/]*)$ /urlugly?id=$1 [R,L] ...
0
votes
0answers
47 views

DNSMasq Not Resolving Addresses on Mac Local Web Development Environment

I've setup my local web development environment according to -http://mallinson.ca/osx-web-development/. I have done this before, and I got on a new computer, and am trying to do it again. I'm running ...
0
votes
0answers
190 views

joomla url rewrite issue when nginx reverse proxy apache2

Thousand Apologies for cross posting. I am really that desperate. I have posted the same topic at serverfault but feedbacks are a bit slow and I can understand that. Just that I am expected to put the ...
1
vote
0answers
78 views

Apache2 + Rails + Froxlor + Multiple Hosts, Apps [closed]

I can't find a solution for the following thing: Ubuntu Server inside Virtual Machine and Debian on my development computer. Apache2 as webserver Froxlor as web interface (domains, folders ...) I ...
1
vote
2answers
54 views

APACHE2: avoid https:// REDIRECT to open phpmyadmin

I have a site https://example.comto ensure that all users go to the https:// I set up a redirect with APACHE (on the default.conf) as followed: <VirtualHost *:80> ServerName example.com ...
1
vote
1answer
157 views

php5-fpm ping and status pages error out? LimitInternalRecursion error?

Not sure if I'm out of bounds here, but I originally posted this on ask Ubuntu here I have php5-fpm running just fine. My entire site is running as expected, almost no issues. However, I am unable to ...
2
votes
1answer
73 views

WAMPServer 404s a directory URL unless it ends with a trailing slash

How can I set Apache so that it doesn't require the trailing slash on the end of the directory? e.g. http://localhost/test will result in 404, whereas http://localhost/test/ will display the ...
3
votes
1answer
58 views

Mod-Rewrite content negotiation for mixed Accept header?

I am configuring a lightweight content negotiation mechanism using Apaches's Mod-Rewrite. The configuration should deliver several different data representations (for instance, HTML, XML, RDF/XML, and ...
7
votes
2answers
1k views

Make Google index over 90,000 user profiles

I have a large amount of user profiles hosted in this schema https://example.com/stats.php?player=name (It's not the prettiest URL, but .htaccess dramatically slows down my site and I don't understand ...
1
vote
0answers
151 views

Apache .htaccess is redirecting all error documents to index.php [closed]

Instead of redirecting errors to their designated pages my .htaccess is redirecting all non existent/blocked pages to index.php instead. Is there something out of place somewhere? I recently added ...
2
votes
1answer
223 views

HTACCESS redirect a URL with query string in it

Basically you can visit /stats.php?player=name by simply typing in https://domain.com/@name and it works perfectly. But I also need the old /stats.php?player=name links to redirect to ...
2
votes
1answer
46 views

Deny access from the server's IP address and allow www.example.com using Apache configuration

I have the following configuration in my apache2.conf <VirtualHost *:80> ServerAdmin webmaster@Host-Wordpress-01 DocumentRoot /var/www/wordpress_example Servername www.example.com ...
2
votes
2answers
80 views

Apache 2.4 <Directory> with regexp - is the alternation operator broken, or am I confused?

I have several document root directories, /opt/lampp/htdocs/proj1, /opt/lampp/proj2, etc, that have AuthType Basic password protection. I want their uploads sub-directory trees not to require a ...
1
vote
1answer
100 views

Do I need to change the Loaded Configuration File to enable cgi?

I'm trying to set up a web app (which I didn't make) on a server which uses an .htaccess file written like this: <Files *.php> SetHandler su-cgi-script SetEnv INTERPRETER_PATH ...
1
vote
0answers
54 views

Configuring subdomain on Apache2 as an alias for subfolder [closed]

If I try to access my ownCloud service under home.example.com/owncloud/ it's working. I'm able to set the mod_rewrite rule to access the same service under cloud.example.com which is a CNAME for ...
2
votes
1answer
385 views

Restrict mod_pagespeed to specific domains on a server

If a server hosts the following domains:- http://exampleA.com http://exampleB.com http://exampleC.com How is it possible to enable mod_pagespeed for only domains http://exampleA.com and ...
1
vote
1answer
69 views

How do you match a specific cookie value with Apache 2.4 <If> statement?

I am not able to figure out why the following doesn't match: <If %{HTTP_COOKIE} == 'XDEBUG_SESSION=leho'"> I'm setting a php_value inside the matching If. I know that part works because this ...
1
vote
1answer
94 views

Fastest Redirection on Apache Server with Wordpress for a Small ~200 Page Website

If I have a website of about 200 pages and most of the links will be inevitably changing, what is the faster way to redirect them (fastest not in terms of how quickly I can do it, but in terms of the ...
2
votes
1answer
760 views

Amazon EC2 Ubuntu instance setting up domain name

I had a domain transferred to amazon using their Rout 53. at the begining when i went to the IP address 54.69.253.182, or ec2-54-69-253-182.us-west-2.compute.amazonaws.com my site would show up. ...
1
vote
0answers
52 views

How can you use Apache .htaccess to specify the location of the PHP binary on shared hosting?

I'm using shared hosting, can create .htaccess and php.ini and have access to ssh. I have PHP 5.6 installed to ~/public_html/php56 and can use this path with ssh, cron and exec() but not on the web. ...
0
votes
1answer
52 views

Setting up a second domain to my web server

I have a domain name which points to my web server, and we added a secondary domain for short urls, which points to the same ip address, however with the new domain, it is giving "Forbidden You ...
1
vote
1answer
77 views

htaccess RewriteRule: Premature ending of rewrite iteration?

I'm still trying to grasp the concept of Apache's RewriteRule, so please confirm if my understanding of the below is correct... So, here's a snippet of a website's .htaccess, I add numbers in front ...
0
votes
0answers
13 views

URL Alias not working in Apache with Redmine [duplicate]

This is a follow-up to my original post here because I got no answer there. The problem is that the request is being routed to Redmine despite the fact that Apache has an Alias for it. Anybody have ...
1
vote
0answers
121 views

Index file not loading automatically for Alias in Virtual Host

I have the following virtual host setup: RailsBaseURI / <VirtualHost *:80> ServerName mydomain DocumentRoot /usr/share/redmine/public Alias /evaluation /home/user/evaluation/ ...
0
votes
3answers
678 views

Always redirecting to https without www

First off all, I have searched and read multiple posts in this form and other websites on this matter and tested everything. Unfortunately the trial and error has not yet payed off. I am OK with ...
2
votes
1answer
63 views

Apache Redirect for Internal Traffic Only

We have a page, gateway.school.edu, where users have to fill out a recaptcha before being directed forward to our password reset. I would like any internal traffic, any user agent on our network with ...
1
vote
1answer
236 views

Installing roundcube webmail as a domain rather than a directory

So I'm running apache2 on Debian and trying to run Roundcube. I have conf.d file and it runs fine but I want to use the base domain instead of example.com/webmail. I would like also when I put ...
2
votes
1answer
917 views

Cache control header specified in .htaccess is not working for static files

I'm trying to use Google PageSpeed Insights to speed up my website - www.edmhunters.com. First off, here is what my .htaccess file looks like # ...
-4
votes
1answer
73 views

How to block all hacking? [closed]

The title explains most of my question. The OS is linux (Lubuntu). The servers are Apache2 (PHP5), MySQL 5.6 and FTP (Samba).
1
vote
2answers
380 views

Redirect Everything After slash (/) to another directory

I'm sure this is an easy thing to do but I can't seem to find the answer! I'm trying to redirect https://carddav.example.com/MYUSERNAME to ...
1
vote
1answer
873 views

Caching of JS and CSS files – Apache mod_headers doesn’t take effect

As suggested by an answer on SO, I'm trying using a version number on my JS and CSS files so that the browser will only make a request when the JS or CSS version number is changed in my PHP file. To ...
1
vote
1answer
65 views

How to redirect a domain to IP+port?

I have a website on localhost. On the other hand, I have a program running on localhost:8067. I would like to manage the next: Type localhost on the URL and go to the website. Type my.domain.com on ...