The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

URL Rewrite not working for API

I'm attempting to create an API server for a course I'm taking and having an issue with enabling URL rewrite. I have an htaccess file and an api.php, what my goal is is just to be able to go to ...
0
votes
0answers
13 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
20 views

Enabling URL rewriting for API

I'm new to configuring API web servers and I'm trying to enable URL rewriting for the server so that a user can go to my public DNS.com/getAlbum to access a method within my api.php file (assumption, ...
0
votes
0answers
13 views

cPanel latest visitors log configuration file path

I was trying to change the LogFormat for the Latest Visitors stats to report clients' real IPs, but I couldn't find a path for it. I've already modified the LogFormat in httpd.conf file and now the ...
0
votes
1answer
11 views

Apache returning incorrect bootstrap.min.css file

Running Apache 2.2 on CentOS 7 I have a bootstrap.min.css file: /css/bootstrap.min.css It is version 2.2.1. However, when I go to http://example.com/css/bootstrap.min.css, I get a bootstrap file ...
0
votes
0answers
5 views

Form submitting straight to root instead of specified submit page [migrated]

The way it's supposed to work is that index.html submits the message directly to sendgrid.php for some reason that's not working. I've included source code of both scripts in case anyone sees any ...
0
votes
1answer
35 views

Chrome flags my SSL

Chrome keeps on showing me yellow triangle, 4 days ago padlock was green. I reissued the certificate and every ssl check test i found passed. Domain is buzztera.gr, do you guy know any other tool i ...
1
vote
0answers
17 views

mod_rewrite cause errors in apache error.log

In Opencart I have enabled SEO URLS, which is working fine, unless that I see errors in apache log: [Thu Apr 16 22:53:38 2015] [error] [client xy] File does not exist: ...
0
votes
1answer
15 views

http-basic auth, else placeholder-page

Is it possible to show a http-basic-auth, and when someone fails that test, show a certain HTML-placeholder-page? If so, how can I achieve that?
0
votes
1answer
34 views

How can I get a regular expression to only match an empty string? (In a .htaccess file)

I try to make a regular expression in a .htaccess file, that matches only an empty string. I have tried many things, but it seems like it’s impossible. For example, I tried ^$, but it's looking for ...
1
vote
0answers
23 views

Security and Apache Methods

I occasionally get annoying POST requests but one lately caused a 500 error. Not a biggie really, but it got me thinking. My site does not have but one form. Outside of this, POST should not exist ...
1
vote
0answers
50 views

I'm only able to reach my site using www, but not non-www

I had a website at example.com. I created another website (example.hotelrunner.com) using HotelRunner and changed domains. I did that by changing the A records and CNAME at Netfirms. Now example.com ...
1
vote
0answers
21 views

Getting 406 on IE after google redirects my site

I have a wordpress blog. When I search the posts from my site in google, the results appear and on clicking the result I can open that particular post on my site. But while doing the same on Internet ...
1
vote
1answer
34 views

Problems with apache rewrite

I am running tomcat on centos6. I'm trying to configure Apache as a front end to tomcat so I could access: help-test.example.com:8080/4-3/help help-test.example.com:8080/4-2/help ...
0
votes
1answer
57 views

Apache / cPanel document root for subdirectory

In cPanel, I'm aware how to set document roots for domains, but I'm trying to have different document roots for a domain depending on the subdirectory. URL | Document Root ...
1
vote
2answers
15 views

Redirect :80 to :8080/ui on Apache

I need to redirect port :80 to :8080/ui. I know iptables lets you redirect :80 to :8080 but it doesn't accept the URL part, only the port. How should I do it? It is acceptable to change the URL to ...
2
votes
0answers
22 views

mod_ident not to be trusted? [closed]

I'm looking at Apache's mod_ident: http://httpd.apache.org/docs/2.2/mod/mod_ident.html However, on this page it has the following disclaimer: The information should not be trusted in any way except ...
0
votes
1answer
37 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 ...
0
votes
0answers
16 views

apache logs in millisecond resolution

Is there a way I can configure apache to log all requests in millisecond resolution instead of its usual one-second resolution? The reason I ask is because I have so many script kiddies making ...
0
votes
0answers
40 views

should I turn off TLS session tickets on Apache2.4.12?

I scanned my server for PCI compliance and I got the following THREAT: The OpenSSL Project is an Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security ...
1
vote
1answer
33 views

Lowercase 301 Redirects - Site Assets Disappear

I am trying to force all my URLs to be lowercase, but in doing so, I lose the connection to all my site assets. I've added this to my in my .conf file: RewriteMap lc int:tolower And this to my ...
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] ...
1
vote
0answers
11 views

How can I view the memory size of modules used by Apache?

Ever since I started using my own Apache module on my server, I noticed that each Apache process size now went up from 30-50 MB to 60-70 MB+ I'm not sure if it is my module that is causing it, or if ...
3
votes
1answer
87 views

403 when query string parameter contains an encoded URL

I'm using shared hosting with minimal access to any configuration settings. I've created a more or less empty HTML file, emptypage.html, with the following contents: <!DOCTYPE html> ...
2
votes
1answer
25 views

Wordpress redirects to ipaddress

I have a self hosted wordpress website hosted on Digital Ocean,setup as a subdomian; ubuntu server running apache. I am trying to setup a development server to test out plugin changes and wordpress ...
0
votes
1answer
104 views

403 when query string contains a dot (.) character [closed]

EDIT: did more research, asked new question I dug a bit deeper and realized that the contents of the page are indeed not relevant to this issue. As this question has gotten more and more confusing, ...
0
votes
0answers
45 views

How to allow access to subdirectory in website using htaccess?

I am wanting to create a seperate directory for my analytics program to function. My website is www.loosebruce.co.uk and I want my directory to be accessible as www.loosebruce.co.uk/analytics The ...
0
votes
0answers
23 views

htaccess sitemap.xml rewrite to /sitemaps/$_SERVER[“MYVAR”]/sitemap.xml

I am trying to update htaccess to write as following: htaccess sitemap.xml rewrite to /sitemaps/$_SERVER["MYVAR"]/sitemap.xml This rewrite should only occur if sitemap.xml is requested in root ...
3
votes
0answers
86 views

.htaccess redirect not working for web alias

I have two domains at one.com: example.com and example.de I would like to redirect from example.com to example.de/en I wanted to use an A record so that example.com points to example.de and then use ...
0
votes
0answers
33 views

Varnish gives error 503, fixed by restart

I have a site running Apache, currently serving static files. A Varnish 3 cache has been setup on a separate virtual machine instance with default parameters and VCL. For some reason, Varnish has ...
2
votes
2answers
129 views

404 not found errors when using Modx CMS in a subfolder

I have installed Modx CMS on my hosting provider, but instead of installing it on my root directory where it usually goes, I put it in a folder on the root directory called makeabio. directory loads ...
2
votes
2answers
161 views

htaccess force HTTPS except one page

This is my current .htaccess file: RewriteEngine On ErrorDocument 404 /404.html # 1 RewriteRule ^extra/([0-9]+)/(.*).html?$ pages.php?do=view&id=$1 RewriteRule ^special-bonus/([0-9]+)/(.*).html?$ ...
2
votes
2answers
142 views

How can I use .htaccess to respond with 403 forbidden status for URLs that contain a query string?

Some bots have been crawling my site for every link that ends with: ?utm_source=dlvr.it&utm_medium=twitter I haven't checked out its IP. Then other bots (10+) follow the link rules ...
1
vote
1answer
33 views

How can I disable the certificate/SSL handshake on the 'www' version of my site served by Apache?

We use SSL on the https://www version of our website. Now I would like to disable the SSL connection on the https://non-www version of our website, so the result is: https://non-www => SSL ...
2
votes
1answer
99 views

HTTPS redirect doesn't appear to follow .htaccess RewriteRule, how can I fix this?

I am redirecting example.com to sample.com/?example, so that I can have a modal popup saying, example has changed its name to sample. It works fine for HTTP redirects from http://example.com, and ...
1
vote
1answer
38 views

Should Apache's httpd.conf Main Server configuration be used with virtual hosts?

Apache's httpd.conf file has three sections. Section 2 is for the 'Main' server configuration, and Section 3 is for Virtual Hosts. In section 2, one has the option to give their server a name. In ...
4
votes
1answer
158 views

How to set browser cache to expire after one day?

I'm using the code below in my .htaccess file to enable caching for my website: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ...
3
votes
1answer
95 views

Multiple Apache vhosts with Basic Auth & SSL

I'm just getting started using Apache and I pretty much have everything configured the way I want, I'm just having trouble with one aspect. A quick overview: I have a document root of "/var/www", ...
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 ...
4
votes
1answer
312 views

Apache 2.4 Loads Image Files Even Without Extension. Why?

I have an HTML page with the following: <img src=J3 width="100" height="150" alt="Student Name" style="float:left;"/> In the same directory there is an image file, J3.jpg. The page ...
2
votes
2answers
61 views

Apache wildcard domains - Restrict number of subdomain levels

I would like to setup a VirtualHost which allows for wildcard subdomains such as foo.sites.example.com and bar.sites.example.com. I do not, however, wish to allow multiple level subdomains such as ...
1
vote
1answer
59 views

Multiple level subdomains SSL certificates

I have a need for multiple subdomains to have a SSL certificate. For instance, the following where the subsite number and subsubsite number could go for ever. subsite1.sites.example.com ...
1
vote
1answer
42 views

Multiple VirtualHosts with wildcards

I have a three VirtualHosts. The second two utilize wildcards. www.example.com *.sites.example.com (i.e. foo.sites.example.com) *.*.sites.example.com (i.e. foo.bar.sites.example.com) For the ...
3
votes
2answers
90 views

Alternatives to multiple .htaccess files or a gigantic httpd.conf file

When starting off, I used .htaccess files to instruct Apache how to handle a request. Not only have I read that doing so was inefficient, I found having a multitude of .htaccess files located ...
3
votes
1answer
102 views

How can I force my site to serve just HTTPS and non-www?

I have a WordPress install where all the links are https://example.com. So, users that try to access the site via https://www.example.com will see the site, but none of the images and resources will ...
1
vote
2answers
46 views

Disable cPanel Apache access logging by cPanel account itself?

Solutions I found through Google to disable access logging of a particular cPanel account seems to be either editing httpd.conf or having access to WHM. Is it possible for the cPanel account itself ...
1
vote
1answer
69 views

Configure files to come from a central location unless that file has been customized for a specific site

I have an user A on a server, this users has a working set of scripts (html+js+css+everything else). I also have users B-[as much as I want]. I want those to use the exact same files, but if they have ...
1
vote
1answer
33 views

Cannot find index for non www

The domain points to an A-Record name server, and as of now the name servers are defaulted to registrar (GoDaddy). I went into /var/www directory and edited index.html to <meta http-equiv="refresh" ...
0
votes
2answers
229 views

Baiduspider is crawling my site even when forbidden by robots.txt, how do I prevent it? [duplicate]

My site has heavy traffic because some bot. I checked access_log, some bot Baiduspider go to my site 10-20 times per minute. I do not need Chinese traffic. I have searched and read ...
2
votes
1answer
192 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 ...