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
10 views

Use PHP to get Apache2 error code [on hold]

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 ...
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 ...
1
vote
1answer
78 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
513 views

Using mod_speling with multi-level htaccess and rewriterules

We recently switched formats for managing our 301s. For the most part, everything went well, but it seems to have stopped mod_speling from working properly. Here's what we changed: old ...
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 ...
0
votes
1answer
85 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 ...
1
vote
2answers
31 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 ...
1
vote
1answer
41 views

ProxyPassReverse doesn't keep me own the proxy URL when I click around

I have the following virtual host on my personal web server which runs on my NAS.I have dynDNS setup to redirect both mydomain.com and *.mydomain.com to my NAS. <VirtualHost *:80> ...
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 ...
2
votes
1answer
2k views

Can't access website from same network

I've setup IIS locally to host a website. I've created a free NOIP account so I can access it with a domain name. It's temporary, so I plan to assign a real domain to it later. I setup port ...
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 ...
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 ...
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
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 ...
4
votes
3answers
158 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 ...
2
votes
1answer
150 views

SSL not working on home page

Recently set up a server for a client and installed a Comodo Positive SSL certificate. In firefox everywhere on the website I can see the padlock icon which shows the Comodo verification, except the ...
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 ...
2
votes
2answers
52 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
1answer
45 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 ...
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 /> ...
4
votes
1answer
2k views

What steps are required to enable SSL on Apache2 with Ubuntu?

I am developing a strategy game for web where there there will be a lot of client-server traffic for sending attacks, moves, etc. Right now I send messages from the client to the server via HTTP, and ...
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
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
56 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
189 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 ...
3
votes
2answers
17k views

Configure clean URLs for Laravel using a rewrite rule to index.php

Recently I've started learning Laravel , I have none experience with framework before. I'm encountering the following problem .I'm trying to configure the .htaccess file so I can have clean URLs but ...
1
vote
1answer
156 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 ...
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 ...
2
votes
1answer
72 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
57 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
148 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
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
98 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
380 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 ...
4
votes
1answer
1k views

What are the most commonly used and basic Apache htaccess redirects?

This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
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 ...
1
vote
1answer
235 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
68 views

Geolocalization and Redirection

I have a multilanguage website. My project was to add the Geolocalization so base on the country that open the site to redirect in the specific url with the right language. The structure of the ...
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. ...
2
votes
1answer
755 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. ...
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
76 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 ...