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
1answer
57 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
20 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 ...
3
votes
2answers
51 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
32 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
40 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
29 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
74 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
38 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
24 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
84 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
46 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
48 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
100 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
185 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 ...
1
vote
1answer
24 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
52 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
36 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
34 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
163 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
43 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
71 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
472 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
42 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
42 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
58 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
73 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
401 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
54 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
164 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
556 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 # ...
-5
votes
1answer
70 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
220 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
448 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
53 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 ...
1
vote
1answer
80 views

Apache Redirect to another folder, both within and outside document root

I've recently set up a home web/media server and having a few difficulties with a few of the settings. It's working fine for serving webpages etc but I've now reorganised the structure of the main ...
0
votes
1answer
272 views

Wamp Server Not Parsing htm Files As PHP

I know this question has been already asked here. I am trying to use a script in my localhost. The script contains .htm files and an .htaccess file with the following code to parse those .htm files as ...
0
votes
1answer
76 views

How to handle non-existent subdirectories?

I have a dynamic website with friendly URLs. Example: Instead of /user.php?id=123, I have /user/123 Instead of /index.php?category=fishes, I have /fishes But, how do I handle non-existent ...
1
vote
4answers
79 views

Should error pages be strictly html?

I'm using PHP on Apache server I'm wondering.. If the error pages should best be served as pure and simple html, without database connection etc.? This would remove any chance of ...
2
votes
1answer
258 views

Apache HTTPS ProxyPass certificate location

I'm trying to set up an Apache server that uses ProxyPass to pass HTTPS requests on to another server. Let's call the proxy server ALPHA and the target server BETA. ALPHA does not run HTTPS, but ...
2
votes
2answers
44 views

Prevent request via IP address of server

I'm pretty sure there's a way to prevent access to a website through the server IP address and to force the user to enter the domain name instead. so that http://156.56.75.87 should trigger a 403 and ...
2
votes
2answers
137 views

What can cause the size of HTTP response to vary for the same response body?

I am trying to understand why the web server behaves differently for the following bad requests: Method Proto Status Req Body Res Referrer ...
0
votes
1answer
164 views

Removing the subdomain as a subdirectory in Apache

I simply trying to make my webpage come up as owncloud.example.com instead of owncloud.example.com/owncloud. I am running Ubuntu 14.04 and Apache 2.4, and using OpenSSL. I have tried changing ...
3
votes
1answer
1k views

Updated Apache from 2.2 to 2.4 and now my sub domains are broken

Upon trying to visit any of my subdomains here is the error recieve in my error.log file: [Tue Jul 15 11:17:42.924790 2014] [core:alert] [pid 17309] [client 108.162.241.152:26427] /var/www/.htaccess: ...
2
votes
1answer
246 views

When does Apache log to access.log - before or after serving the request?

Reading this post "Understanding Apache Access Log" it refers to http://httpd.apache.org/docs/1.3/logs.html which says %t is the time the server finished processing the request. By this I ...
1
vote
1answer
136 views

Use different .htaccess file based on set header from browser

I want to have the ability to test .htaccess rules before saving them to the main .htaccess file. Is it possible to set a specific request header and have Apache use a set of rules from a different ...
0
votes
1answer
36 views

RewriteRule not working at server level?

I wanted to forbid some robots from doing certain things to my websites and decided to add a RewriteRule for that purpose. The rule works when put in one of my <VirtualHost *:80> tag and looks ...