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)

2
votes
1answer
92 views

Parse Python script on Apache virtual host

I have an up and running Apache server working with PHP on a Centos 6 server. Apache was installed using yum -y install httpd mod_ssl. I now wish to add Python. I installed Python as follows: wget ...
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 ...
2
votes
1answer
42 views

Trying to unload unnecessary modules from apache but don't know which

I have apache 2.2 with whm/cpanel installed on my server. When I look at the loaded modules list, I see: core_module (static) authn_file_module (static) authn_default_module (static) ...
2
votes
0answers
35 views

Separate multiple domains with htaccess (solution works on one hosting, not on another)

I have two different domains on one VPS. It's Apache 2.4.7, I remember trying long to set up name based Virtualhosts on localhost to find out Apache Virtualhosts are not supported anymore. (I cannot ...
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 ...
1
vote
2answers
80 views

best apache log file permissions on cpanel server

In an effort to protect my site from bad bots including ridiculous hackers that can login to the server, I want to secure access_log and error_log as much as possible without breaking apache or ...
0
votes
1answer
17 views

Is a blank really a directory when dealing with mod-rewrite?

I spent about 20 minutes wrapping my head around this, and finally came to a solution but did not know why it worked. The important lines (as it relates to this question) in the apache configuration ...
0
votes
1answer
13 views

how to kill program that displays webpages in fastcgi/apache

I'm beginning to think PHP contributes to extra milliseconds of waiting time. After all, my website is mostly meant for showing photos and I like to have things work fast and so does google. I was ...
0
votes
1answer
81 views

Preventing phpMyAdmin hacks

I recently saw an unexpected error in my error log, and upon investigating, found it repeated many times. What are the deviants trying to accomplish, and is there any risk of them accomplishing it. ...
2
votes
2answers
151 views

Forcing HTTPS and WWW with apache

Apache does not force HTTPS in a subfolder of a folder, but it works in the first level subfolders. Here are all the HTAccess snippets I have tried: RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"' ...
0
votes
0answers
18 views

Godaddy Plesk domain forwarding to apache application

I am trying to configure my domain to forward to my application running on apache server (on the godaddy server). I'm using Plesk control panel to setup my domain forwards. In the Plesk CP, I've set ...
1
vote
1answer
42 views

APACHE mod_rewrite add query string to URL

Using mod_rewrite how can I change the current URL format: From: https://example.com/something/NAME-IN-CAPS/phonebook.xml To: https://example.com/anything/whatever/phonebook.php?name=NAME-IN-CAPS
1
vote
1answer
55 views

PHP webpages in sub-directory cannot be accessed

I've got a university club website at thing.uni.ac.uk/meow/foobar which also has the domain foobar.co.uk. I don't have access to the config. I set up this website using HTML/CSS/JS alone and it's been ...
3
votes
1answer
86 views

After rewriting URL page not found

I want to rewrite my current URL that is http://localhost/sitename/landing-page/?from=Algeria&to=Afghanistan&submit=Submit to http://localhost/sitename/removals-from-Algeria-to-Afghanistan ...
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
0answers
23 views

Vhost sends www.* to another domain

I created a virtual host at my server to host multiple sites, but I got a few unexpected problems. One sites doesn't gets recognized by the server and is redirected to another domain on the server, ...
3
votes
4answers
200 views

How to change document root of main domain in cPanel shared host?

I am in a shared host that I have basic cli access. Inside public_html/ I host several addon domains, each in its own dir. Is it possible to make my main domain's document root inside another folder ...
1
vote
0answers
15 views

Startup Script for LAMP in Google Instance Templates

I am new to Google Cloud and i want to set up an Instance Template and then create an Instance Group using the template. After creating the group, i want to enable "Network Load Balancing". During ...
2
votes
1answer
82 views

Wamp Server on local machine responds to ping but port 80 comes up as closed

I recently registered the domain politicsapp.us with GoDaddy and I am trying to set up a server on my local machine with WampServer. I set it all up, but when i type that into a browser, it gives me ...
0
votes
2answers
204 views

Disabling If-modified-since / if-none-match on web server for some files

What I want to do is try to get search engines to rescan my sitemap files (plain xml files stored on server). It did recently attempt to access it but it received a not modified response (HTTP status ...
0
votes
0answers
128 views

Godaddy linux hosting The PDO extension is required for this adapter but the extension is not loaded

I'm getting following error on GoDaddy economy linux hosting. How to fix that. The PDO extension is required for this adapter but the extension is not loaded Error can be found at following ...
0
votes
0answers
14 views

Can multiple websites/domains be hosted by the same Platform as a Service [PAAS]?

Sorry if this is trivial, but I am still learning the basics of PAAS, so I appreciate your patience... Can separate websites both be hosted by a single PAAS (used via single account with a given ...
1
vote
0answers
32 views

apache/php settings to optimize website for long distance clients

Contrary to what many suggest, I decided to increase my keep-alive in apache from 1 to 5 seconds and to a maximum of 100 keep-alive requests per keep-alive connection from any one IP address. I also ...
1
vote
2answers
648 views

Plesk all hosted websites stopped

All the hosted websites on my VPS stopped working yesterday. I have not changed any settings since a week. The websites result in an ERR_CONNECTION_REFUSED. In my time zone, the websites stopped ...
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 ...
4
votes
3answers
2k views

htaccess redirect non-www to www with SSL/HTTPS

I want a rewrite rule that redirects everything to https:// AND www. For example https://example.com should be going to https://www.example.com This is what I have: RewriteEngine On RewriteCond ...
0
votes
0answers
11 views

ZF Tool 1.6.0 Windows 8 Permissions

I'm currently installing the Zend Framework onto a local 64bit Apache install with appropriate PHP ver. Localhost works fine and Apache Monitor is reporting correctly and identifying PHP just fine. ...
2
votes
1answer
159 views

mod_proxy(_html) and a buggy Webserver (delivers text/html for JSON data)

We've got a Webserver that answers to AJAX requests by sending JSON Data to the client. Problem is that the JSON Data has the content-type "text/html" instead of "application/json" (it's an Oracle ...
2
votes
1answer
175 views

.htaccess file not caching

I have read several guides for how to write the htaccess file for caching but with no success. I asume I wrote something wrong and need some help on finding what i did wrong. Here's my htaccess file: ...
1
vote
1answer
53 views

Apache .htaccess mod_rewrite: use of [NC]

I see tons of .htacces examples containing the [NC] flag (NoCase = case-insensitive) For example the famous h5bp page use the [NC] flag a lot: ...
0
votes
0answers
38 views

Hosting htaccess redirect subdirectory to subdomain

I have simple hosting plan with domains included: Now I have the domain.com and seconddomain.com now I want to use all that domain and give them his own root directory. If I use the controle panel ...
1
vote
1answer
27 views

Why does Apache parse .htaccess if accessed through the main page and not through a VirtualHost?

I have two websites. One is hosted on /var/www (www.example.com) and the other is /var/www/test (test.example.com). The second is a VirtualHost. I wrote a .htaccess (I'm using it to mod_rewrite), put ...
1
vote
1answer
125 views

Apache 2.2 Not Identifying Safari with HTTP_USER_AGENT

I have a web server that has to meet PCI compliance requirements. Their latest round of policy changes have removed support for Safari, after having removed support for Windows XP based IE clients. ...
0
votes
1answer
172 views

Vanity URLs with .htaccess and PHP?

I need to create a vanity URL redirect using htaccess and PHP. My requirements are: If a user writes example.com/users/foobar The client will be redirected to for example: profile.php?user=foobar in ...
1
vote
1answer
123 views

how can i display the MD5 or SHA1 of files in a web server directory?

When you don't have an index.html, most web servers will show a list of files in the directory. Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with ...
3
votes
1answer
49 views

Server does not lookup www or other subdomains

I have some problems, and I think that it's related to DNS Records. I can't open my website by www. or access any sub-domain. These are my DNS settings: example.de. 14400 IN A ...
0
votes
0answers
3 views

What should I look for when getting a web host for a Wordpress site and php API's for my mobile applications? [duplicate]

I am an iOS developer and I want to expand and get a server (not to buy it, web hosting...i guess). I want a place where to put a site(probably WordPress site&blog), and a place where I can put my ...
0
votes
2answers
130 views

Google PageSpeed Insight: redirecting non-www to www does not use cache version

If I test my website with Google PageSpeed, I get a lower score if I test mydomain.com than if I test www.mydomain.com. In the first case, Google complains my server took too much time to respond. I ...
3
votes
2answers
846 views

redirect 204 with htaccess if url contain certain string

I get tons of url with "undefined" added at the end of url, consisting about 20% of my pageview. I tried to check the troubling script source and can't find it. Tried some solutions but none of them ...
1
vote
2answers
76 views

Granting a developer cPanel access but disabling downloads

I need to hire a dev to do some work on my site, however as it is a very large one and valueable at the same time, i don't want to risk a dev stealing the work and mechanisms behind it. I will need ...
4
votes
1answer
2k views

Have disabled apache site config file 000-default.conf, but it still seems active. Why?

I added a file mysite.conf to my apache sites-available folder with the correct settings, then enabled it and reloaded apache, and it isn't working. I want to disable the default site config as ...
1
vote
1answer
24 views

Default Apache webroot different to what I expect; seems to be /var/www/html rather than /var/www

I have a new installation of Apache in Ubuntu 14.04.2 The /etc/apache2/apache2.conf file contains: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None ...
2
votes
1answer
400 views

Virtualhost config: routing and wildcard usage

My VirtualHost config is below: <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www/example/html </VirtualHost> I ...
2
votes
2answers
227 views

Find domain on access_logs in Apache

I am in charge of a server that is receiving strange requests for a file that doesn't exist and it never existed and I am trying to find which account they are coming from (CentOS + Plesk) The logs ...
2
votes
1answer
133 views

Internal Server Error 500 .htaccess

For years, I have been using the following .htaccess for PHP to execute within HTML on Apache at GoDaddy: AddHandler fcgid-script .html FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .html A few days ...
2
votes
2answers
75 views

error.log file in public_html which is publically viewable?

There is a file in my public_html folder called error.log which is viewable by anyone if they just enter the URL in their browser, like: example.com/error.log I'm running Apache. My question is, how ...
0
votes
1answer
88 views

SEO advantages of /blog when forwarding via ProxyPass

We've had requests from clients via their SEO companies to host blogs accompanying ecommerce sites on theirdomain.com/blog rather than on - for example - blog.theirdomain.com As we look after their ...
6
votes
4answers
105 views

Can I manipulate the DNS protocol to host websites across multiple servers and direct users to the geographically closest?

Let's pretend that I'm hosting a very big and popular website. Let's also pretend that I have many web servers spread out all around the world. Each web server containing identical files. If I make ...
1
vote
0answers
176 views

File does not exist from wacky websites?

Our LAMPs website has been running slow as of late, I suspect its a SQL problem but I want to check all the logs. Can somebody explain what the following log means, and give some insight if it is a ...
0
votes
0answers
20 views

set chrome permission for whole domain?

I have a website running apache. In my conf, I have this at the end: <Directory /usr/local/django/apache> Order deny,allow Allow from all AuthType Basic AuthName "Files Top Secret" ...