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
2answers
69 views

How to run WordPress and Java web app running on Tomcat on the same server?

I have to run a WordPress site served via Apache2 & Java-based webapp using Tomcat on the same server. When users come to example.com or example.com/public-pages they need to served from ...
-1
votes
2answers
30 views

How do I server multiple domains from the same directory and codebase without my configuraton breaking when apache.conf is overwritten?

I have 20 domains on a VPS running cPanel. One public_html is filled with code, the remaining 19 are symbolic links to that one. (For example, assets is a directory within public_html ... for the 19 ...
0
votes
2answers
86 views

Do PHP-FPM (and other PHP handlers) need execute permissions on the PHP files they're serving?

I read in a post at Server Fault that PHP-FPM needs execute permissions. However, the answer in When creating a website, what permissions and directory structure? only grants read and write ...
2
votes
0answers
29 views

Apache mod_pagespeed ignores redirected pages

Using mod_pagespeed (https://developers.google.com/speed/pagespeed/module) with an Apache Server, I noticed that some pages were not being processed. The pages in question all had one similar ...
2
votes
4answers
63 views

Redirect example.com:81 to example.com

I need to redirect www.example.com:81/site/ to www.example.com. I have used mod_rewrite a few times, is it possible to solve this in a similar way?
2
votes
1answer
28 views

Apache mod_rewrite SSL vs Non-SSL

I have my site setup with two conf files (one for SSL and one for Non-SSL ) The two confs are at this gist -> https://gist.github.com/akinsgre/9645179 The Non-SSL configuration works fine. When ...
1
vote
1answer
11k views

Set the “servername” directive globally to suppress this message

I am setting up PHP for the first time and I am getting this error from the Apache server: Set the "servername" directive globally to suppress this message. This is the content of my httpd.conf ...
4
votes
1answer
80 views

How can I serve all resources under HTTPS instead of HTTP without changing their URLs in the HTML code

I know that by using an .htaccess file I can redirect everyone to https://. However, my SSL certificate complains if all the content isn't served under HTTPS. Is there a way to convert all the ...
3
votes
1answer
29 views

Which domain should I authorize in my .htaccess to let google spreadsheet access files on my site

I use google spreadsheet feature that allows one to let an image be the content of a cell. The cell is defined by: =image("http://www.example.com/my-pics/my-pic.jpg") It works pretty well. But, I ...
0
votes
3answers
29 views

Stop other sites on server from being able to access other sites on server

I am on a friends server and I have found a potential security flaw where I can access other sites files on the server. He says he is on a shared hosting and I am not sure yet if the other sites are ...
0
votes
2answers
35 views

Location of httpd.conf file

I have setup a home server on my PC and I can edit my httpd.conf file on it. When I move to my web server I can't see the location of my httpd.conf file. Is it in the www directory of the website? ...
6
votes
2answers
859 views

How do I temporarily disable a website?

I have to take a website down for a month, which is the least intrusive way to keep achieved SEO optimizations? should I just add in apache config: <Directory ...
0
votes
1answer
24 views

Installing mpm_worker for Apache and configuring pre_main_global.conf doesn't seem to work

I just installed mpm_worker for Apache and added this to pre_main_global.conf: <IfModule worker.c> ServerLimit 40 StartServers 2 MaxClients 1000 MinSpareThreads ...
1
vote
2answers
803 views

How do I force a www subdomain on both HTTPS and HTTP?

For whatever reason I can’t seem to get this right. I’ve looked at many examples on here and on the Apache website. I’m trying to force www.example.com instead of example.com on both HTTP and HTTPS, ...
0
votes
1answer
54 views

Why is my subdomain not returning anything?

I've set up DNS record to test out using virtual hosts prior to moving one of my wordpress installs out of a subdomain. I want to move from mysite.com/blog to blog.mysite.com. I've tested the DNS ...
1
vote
1answer
75 views

http header rel=“canonical” through htaccess for dynamic content

I have a large number of URLS where I need to specify rel="canonical", The URL structure is like: example.c.o.m/abcd?q=ccccc&location=ffff&x=pp&y=qq I need to strip the last two ...
0
votes
0answers
7 views

Redirecting subdirectories to new domain [duplicate]

I have a WordPress blog under, let's say, example.com. It has pages under the following structure: example.com/2013/some-article example.com/2014/some-other-article Soon this domain will expire ...
0
votes
0answers
17 views

mod_caching work but file not matching because it adding the 443 port in cached file

The config file: CacheRoot /var/cache/mod_cache CacheEnable disk / CacheDirLevels 5 CacheDirLength 2 CacheMinFileSize 0 CacheIgnoreHeaders Set-Cookie The url EX: ...
1
vote
2answers
52 views

Install my own software on VPS

I didn't have VPS before, I wanna know can I install any software on VPS? For example if I buy Windows VPS can I install Apache on that instead of Microsoft IIS?
2
votes
2answers
69 views

Why do servers need to know their domain?

Besides routing traffic, why do servers need to be configured with the server name? It seems like a waste in all cases except for routing or hosting for a TLD. Nginx example: server { listen 80; ...
1
vote
1answer
28 views

protocol relative URLs from other domains

If I am configuring https://foo.mysite.com where I have an SSL cert with CN=foo.mysite.com, but index.html has includes/images/etc loading from http://othersite.com/cat.png and ...
4
votes
1answer
8k views

Configure Apache HTTP 2.2 for PUT method

I've written code for file upload and download using HttpWebRequest/HttpWebResponse class in C# with Apache 2.2 as a web server. In code I'm using request.method = "PUT". I want to config my HTTP ...
1
vote
1answer
141 views

Placing multiple Apache VHost sites in 'maintenance mode' with 1 rewrite rule

I have an Apache2.2 webserver set up to handle dozens of virtual host sites for our organization. I am looking for a simple method to temporarily 'turn off' all the sites by having all site requests ...
0
votes
1answer
30 views

How do you test non-live sites before switching DNS?

I have a few websites that I need to move to a new server - how would I test that they work before switching DNS? What URL would I navigate to?
1
vote
1answer
894 views

Physical memory usage issues with WordPress plugins

Occasionally, my website that's hosted with GoDaddy is crashing due to physical memory overload. My host told me that PHP processes are overloading the server, and to try to find out which WordPress ...
0
votes
1answer
42 views

Check to see if emails are getting automatically sent

I have a Drupal site that is supiosed to send emails every time new content is created. The emails are sent to admin users so that they can check the content. None of the emails are making it to the ...
1
vote
1answer
74 views

My Server is returning a 404 instead of 403 when access if forbidden - is it good or bad?

via .htaccess, I forbid access to folders that have no index page inside (domain.com/images for example), and also block my site completely for several user-agents (such as wget). When I test to see ...
1
vote
1answer
24 views

How to eliminate /wiki/ directory in rewrite rule on a site dedicated for a wiki

I have set up a subdomain of my site (for the purposes of this question I'll call it wiki.example.com), installed a wiki there, and set up URL rewrite according to the article on MediaWiki's website ...
4
votes
2answers
194 views

Ditch cPanel / WHM in favour of manual seup

We currently use cPanel / WHM on a reseller account but are looking at getting a dedicated server. My first thought was to duplicate this set up on the dedicated box to allow us to quickly create new ...
7
votes
5answers
168 views

Access site not working for the owner

I made a website, and it works for everyone except for the site owner, who cannot access the site. He gets a "server could not be found" error. I went to his house and the issue occurs for all of his ...
0
votes
0answers
51 views

Session Inconsistent For Java Web Application in IE 11

I have a Java web application running in Apache/Tomcat. The web application runs fine in the latest Chrome & Firefox builds, and in older versions of Internet Explorer (IE) such as IE 8. The ...
2
votes
2answers
62 views

Need help writing .htaccess / Apache rule

I have some URLs which are now 404 due to site upgrade. I want all URLs starting with www.example.com/archives/* to point to www.example.com/news (notice that after archives there is a wildcard ...
2
votes
5answers
199 views

Apache URL rewriting not working

All .php files are rewritted before doing the below rewriting: test.php => test foo.php => foo I want to rewrite this URL http://www.testdomain.com/test?name=john&id=2&nick=doe to ...
2
votes
1answer
132 views

How should I set up and use a CDN for my web application?

I plan to create and run my own CDN. Currently, media and other static content is being served by the web-servers which are behind a load balancer which is a waste of resources. The network structure ...
1
vote
1answer
41 views

Why web hosting providers use Apache for their plans?

As the title says, I see most web hosting companies provide plans that running Apache instead of Nginx. So, what is the reason that makes them stick with Apache? Although, Nginx is much more lighter ...
0
votes
2answers
110 views

Why can I access a website through IP address but not by it's domain name?

I'm using CentOS, LAMP and Wordpress.org I have added and edited a virtual host on the apache server. For servername I put the hostname that is output when I typed the command hostname. Now I'm ...
0
votes
0answers
123 views

Configuring Apache 2.2 for Python web app in subdirectory

I have been assigned a web server to administer, and I have to deploy a web application I wrote on it. This application is mostly a single page in JS + HTML, but it has a little form to accept ...
2
votes
3answers
120 views

Different authentication for HTTP POST and GET requests in Apache

I want to authenticate for POST requests for http://path/to/logical/abc.xml (but not GET requests to that URL). How do I put constraints like this in place? The paths are logical and location ...
0
votes
0answers
97 views

Proxying is removing the end of the URL

I have an existing apache webserver, and I am trying to add YouTrack to it. Knowing anything about YouTrack is likely not relevant for this question, except that it's running Jetty 6.1. So I have it ...
0
votes
0answers
30 views

Random Apache and NginX stops

I have a virtuell server from strato (german hoster) running on ubuntu Ubuntu 12.04.1 LTS with plesk. Lately I have problems that my webserver once in a while doesn't respond request. so I startet ...
4
votes
2answers
72 views

Best process for upgrading a live server

I just recently started at a new company, and their live server has PHP v5.2.6 (yes, circa 2008). A site I recently designed for them actually wouldn't work on it because PHP is so old, so I've now ...
3
votes
3answers
3k views

Enable gzip compression on Bluehost?

My website is loading large (~3mb) SVG file with jQuery. It takes quite a while therefore I decided to enable gzip compression. I have a hosting account with Bluehost which supports custom .htaccess ...
1
vote
3answers
175 views

Hide a site entirely from search engines (Google, Bing etc.)

My company is running a few internal websites that we do not want indexed by search engines such as Google, Bing etc. However, the websites still need to be accessible for our customers, and ...
0
votes
1answer
559 views

How to leverage browser cache using .htaccess on nginx?

I'm trying to increase the pagespeed of our website ubercore.co. I'm using PageSpeed Insights for Chrome extension to analyze the pagespeed. It has suggested me to "Leverage browser cache". This is ...
1
vote
1answer
211 views

Apache returns 304, I want it to ignore anything from client and send the page

I am using Apache HTTPD 2.2 on Windows. mod_expires is commented out. Most other stuff are not changed from the defaults. gzip is on. I made some changes to my .js files. My client gets one 304 ...
2
votes
1answer
97 views

Simplest way to lock down a beta web site but allow paypal payments

Perhaps a strange question, but I have a website that's not ready for production use online in order to test paypal payments. I had locked down the site using a .htaccess file however this also ...
1
vote
1answer
123 views

Site down for some users and I can't find the issue

Hoping to get some advice, I'm getting feedback from users in seveal regions around the world (Asia, Africa) that a site I run is down for them. When I check myself it's fine, checking the server all ...
1
vote
0answers
32 views

web maliciousness via Twitter? [closed]

My Apache logs suddenly show huge numbers of downloads (downloading the same things over and over) from IPs that trace to Twitter -- 199.59 & 199.16. What does that mean? Can you actually download ...
0
votes
1answer
1k views

Trying to host server for external access - Apache, VirtualBox & Portforwarding

Banging my head on the wall at this stage... Trying to host my Apache site on Ubuntu 12.10 with VirtualBox. Running Windows 8 host. Things I've done: Ensured Apache is listening on ports 80, 443 ...
0
votes
2answers
47 views

How to add a remote file to .htaccess file for webcaching?

I have the following code in my .htaccess file that caches several file extension types: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ...