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

1
vote
0answers
9 views

Apache reverse proxy changes served content depending on mime type

We are running a setup with Apache reverse proxy (Apache/2.4.18 (Ubuntu)) on Ubuntu 16.04 that serves as a reverse proxy for several other Apaches running on the same machine on various other network ...
1
vote
1answer
35 views

Speed of prefork+ruid2 with more connections on limited memory

Currently I am using Apache in a server with WHM/Cpanel and I'm currently using Prefork MPM with Mod Ruid2 to process PHP pages. While the setup allows it to run very fast, I'm limited to processing ...
1
vote
0answers
14 views

Is it able to disable secure attribute for Cookie on SSL connection?

There are HTTP and HTTPS page on our site on Apache. So We need to convert from HTTPS to HTTP or from HTTP to HTTPS to prevent from login session cookie fired. I already know that it does not make ...
0
votes
1answer
61 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 (Austalian Business Number). After that I started using mydomain.info instead to host my wordpress site. Recently I had ...
2
votes
1answer
28 views

Apache 2 mod_rewrite Inconsistent Results

My former university, SPSU, was "consolidated" into Kennesaw State University. I used to have the domain bbrown.spsu.edu. As a temporary fix, bbrown.kennesaw.edu was set up by University IT. ...
0
votes
0answers
15 views

Server's IP address is masked but doesn't show paths

I'm new to server administration. I made a website and rent a domain from Godaddy. I set forwarding with IP masking. When I go to my website, it shows that domain name, but doesn't show the file path, ...
1
vote
2answers
238 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 ...
2
votes
1answer
75 views

ProxyPassReverse doesn't keep me on 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> ...
2
votes
1answer
168 views

Apache reverse proxy changing Content-Type

Update 3: I've experimented a bit with setting ContentType for all css files to different types like text/plain, text/html and text/css in the .htaccess file of the webserver hosting Owncloud and ...
4
votes
3answers
250 views

Which is more SEO friendly, redirect or rewrite?

On Apache 2.4, which is better for multiple migrated URLs in terms of SEO, 301 redirect or rewrite? I have ~50 URLs.
6
votes
4answers
45k views

How to enable use of .htaccess in Apache on Ubuntu?

I'm trying to enable use of htaccess file in Ubuntu 14.04 (Apache 2.4.7). I know that this question has many possible duplicates, but none of them helped me yet. .htaccess: ErrorDocument 404 ...
3
votes
1answer
34 views

Getting MAMP Pro Apache to Listen on Multiple TCP Ports

I'm running MAMP Pro (Currently 3.5). I would like to be able to run Apache's standard (non-SSL) TCP on multiple ports (80 and 8080) for testing. It doesn't seem to let me do this. Adding a new TCP ...
3
votes
3answers
183 views

Redirect $.html to $/ mod_rewrite rule clash

I have already remapped URL's from for example /sub/test/ to test.html but I also want to redirect /sub/test.html to /sub/test/ but here seems to be a clash between the rules. .htaccess files is in ...
1
vote
1answer
30 views

Apache .conf files not working. Apache restarts even without ANY conf files

For some reason, my apache instances have stopped updating their conf files. I am able to reboot apache without any errors logged and apache will not recognize any changes. I have gone so far as to ...
3
votes
1answer
101 views

.htaccess mod rewrite sub directories redirect loop

I am trying to setup a sub-directory with individual .htaccess. I want to redirect .html files to url without extensions and also add a trailing slash and redirect all non-slashed urls there. Here's ...
4
votes
1answer
83 views

Possible to split virtual host definitions into multiple apache conf files?

I have a single server that I use to host a whole bunch of smallish websites. It's recently come to my attention that a service called LetsEncrypt allows me to get an SSL certificate for free. The ...
1
vote
1answer
58 views

Rewrite rules in .htaccess never take effect and no redirects ever happen

I recently set up a vps with digital ocean to let my site run on php7 and http2 Everything is running great but my sites .htaccess file is not redirecting as it should. I have changed up my ...
2
votes
1answer
119 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 ...
4
votes
2answers
53 views

Will using Google's PageSpeed module help to speed up a site with Magento?

I'm considering installing Google's PageSpeed module on a Debian Linux / Apache 2.4 web server to speed up a Magento CE website. Will using Google's PageSpeed module help to speed up a website using ...
0
votes
0answers
43 views

Can't load the MediaWiki Skin after setting up Short URL

Problem I set up the Short URL function for my MediaWiki installation. After I done this my wiki can't load the MediaWiki design. How can I set my MediaWiki settings correctly to load my skins ...
3
votes
0answers
34 views

Reverse proxy apache not working

I have my subdomain pointing to my server IP. I have enabled sudo a2enmod proxy sudo a2enmod proxy_http sudo a2enmod proxy_wstunnel Here is my virtualhost.conf file contents: ProxyRequests off ...
2
votes
1answer
368 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
3answers
52 views

I can't personalise my error pages — Apache ErrorDocument directive results in additional not found error

I use apache 2.4.10, and I can't use personal error pages. I changed /etc/apache2/conf-available/localized-error-pages.conf and added : ErrorDocument 404 /404.html and created the file ...
1
vote
2answers
102 views

How to create Short URL in Mediawiki without getting an 403 Forbidden Error in Apache?

How to create Short URL in Mediawiki without getting an 403 Forbidden Error in Apache? My httpd.conf: #### Wikibase (BETA) <VirtualHost *> ServerName wikibase.isc ...
3
votes
1answer
635 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
0answers
29 views

Rstudio Apache2 reverse proxy sends me back to index.php after sign-in

I'm trying to set up an Apache2 reverse proxy to access another machine at home. I've got the Apache 000-default.conf set up as follows: <VirtualHost *:80 *:443> ProxyPreserveHost On # Servers ...
3
votes
1answer
557 views

debian phpmyadmin - Call to undefined function __()

I recently upgraded my debian installation from wheezy to jessie. Now I get only blank pages when accessing phpmyadmin. The apache log says: Fatal error: Call to undefined function __() in ...
3
votes
2answers
42 views

How can I make Apache wait for images to be fully written to the storage drive before serving them?

I'm using fswebcam to take pictures from my webcam and write them to /var/www so that anybody can view them from my website. The problem is that my server is a Raspberry Pi with a slow SD card. It ...
1
vote
3answers
47 views

Regular expression for Apache redirection

In the .htaccess file I would like to redirect (301): From: http://www.example.com/photo<anything> To: http://www.example.com/blog/ Basically, any URL starting with /photo should be redirected ...
2
votes
0answers
87 views

RequireAll blocks overriding each other

I have recently converted a pre-2.4 configuration to Apache's new authorisation configuration but ran into a problem/misunderstanding concerning more than one RequireAll block. What I am basically ...
1
vote
2answers
470 views

Mod_Rewrite Error code: ERR_TOO_MANY_REDIRECTS

As stated in the title, I encounter a redirect loop when accessing my pages in the website. Here is my rewrite config. RewriteCond %{HTTP_REFERER} ^http://example\.com/test/store\.do [NC] ...
0
votes
1answer
26 views

Possible to make virtual servers on hosted web server? [closed]

I own a debian root web server at an ISP. By own I mean, I rent the server with a package, I do not own the hardware and such. No plesk or anything else. All configuration is done by hand (well, a ...
0
votes
0answers
5 views

Excluding a file from an IP block [duplicate]

I have recently converted a pre-2.4 configuration to Apache's new authorisation configuration but ran into a problem/misunderstanding concerning more than one RequireAll block. What I am basically ...
1
vote
0answers
11 views

set any subdomain for a given domain in apache in IOS

I am working in localhost, I've created a domain like this in /etc/hosts 127.0.0.1 *.example.com in /etc/apache2/extra/httpd-vhosts.conf <VirtualHost *:80> ServerName *.example.local ...
3
votes
3answers
192 views

Using PHP inside .html files not working as expected

Apache2, Linux, php5 I have added this line to my .htaccess file AddType application/x-httpd-php5 .htm .html running apace2ctl -m, shows this module loaded A php5_module (shared) I have a ...
1
vote
1answer
28 views

How to run perl scripts on server? (apache2)

when i visit http://example.asd/asd.pl it just asks me if I want to download the script. I have perl module installed in my httpd.conf and I have LoadModule perl_module modules/mod_perl.so How ...
2
votes
2answers
69 views

How to change whole folder from http to https

The checkout/onepage is working with HTTPS. But, why checkout/cart is not? Here is fragment of the .htaccess: ############################################ ## enable rewrites Options +FollowSymLinks ...
4
votes
1answer
51 views

Are Commercial SSL Certificates (key file, and certificate file) portable when migrating between a new and old Apache2 server?

We have an SSL Certificate that's currently on our Apache2 server for transferring traffic over the https protocol. We are migrating away from this server to at another data center with a different ...
1
vote
1answer
70 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 ...
3
votes
1answer
34 views

How RAM is used on CGI query?

The user sends a file via HTML form <input type="file" ... /> CGI script, installed on the server, receives the file and, say, writes it down to the disk. As simple as only possible. As I ...
1
vote
1answer
1k views

Override .htaccess from parent directory

I have a local LAMP stack (without the MySQL. LAP stack? Anyways..) and I am using this as a development environment for a production website. The site is placed in a sub-directory of the Apache2 ...
2
votes
2answers
861 views

Redirecting a CSS file based on .htaccess rules

I'm trying to hack the CSS files on OSTicket by replacing them with my own custom ones when a specific URL is accessed. The URL that is accessed for this example is: ...
0
votes
1answer
308 views

Changing domain name - what are the practical steps involved [duplicate]

Possible Duplicate: How do I rename a domain and preserve PageRank? I launched a website a couple of years ago, bright eyed and bushy tailed, with dreams of conquering the world. ...
1
vote
1answer
107 views

What is the purpose of <Directory /> with a local <VirtualHost>

<VirtualHost *:80> DocumentRoot /var/www <Directory /> </Directory> </VirtualHost> Does the <Directory> tag refer to /var/www on the server, or /? What ...
1
vote
0answers
41 views

Is there a scripting or command-line interface to the Apache mod_info module?

I am running an Apache2 web-server. I would like to be able to access the kind of information made available by the mod_info and mod_status modules via the command-line, either through a scripting ...
3
votes
1answer
2k views

Phpmyadmin error 403 - No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive

I installed phpmyadmin over a year ago. I use MAC OS 10.10.4. I don't use Xampp. My installation Folder is /Library/Webserver/Documents/phpmyadmin. Now when I try to access phpmyadmin with that ...
0
votes
1answer
67 views

How do I setup redirect for multiple subdomains to different folders

So I have 2 sites on this particular server and this is all internal, but when a user goes to websvn for instance, I want them to go to websvn.domain.local and it is going there but it is also ...
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 ...
2
votes
0answers
156 views

Document root owner and privileges, Apache web server

I am configuring a website for public use. The document root is currently /var/www/html and the owner/group is root/root. So, I'm guessing that it would be best or at least better to change the ...
1
vote
1answer
18 views

apache directory pages in default setup = duplicate content?

I'm trying to figure out if google or any other service would treat apache folder pages as duplicate content if in each access attempt a random number of slashes are used. For example, these four URLs ...