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.
4
votes
1answer
141 views
Best way to protect public facing development environments?
We're in the process of setting up individualized dev environments for our developers. All of our developers are remote and we don't have a VPN or anything to bring this in house.
But here's the ...
4
votes
1answer
158 views
Do Dynamic Subdomains Harm SEO or not?
I am establishing a new website for just resumes, and I structured my htaccess as to provide dynamic subdomains as:
marketing.resumedomain.org/index.html
sales.resumedomain.org/index.html
...
4
votes
1answer
285 views
How to organize /var/www/ for multiple users and vhosts in apache
I've been creating new directories for each site in the var folder like this:
/var/www -- localhost -- owned by localuser:www-data (+setuid/setguid)
/var/www-somesite -- somesite.com, ...
4
votes
1answer
294 views
How should incorrectly encoded URLs be handled?
Just recently noticed that some sites link with the URL incorrectly percent-encoded, to which my server (LAMP) responds with a 404 Not Found.
For example, for a URL of mine like this:
...
4
votes
1answer
5k views
Properly force SSL with .htaccess, no double authentication
I'm trying to force SSL with .htaccess on a shared host. This means there I only have access to .htaccess and not the vhosts config. I know you can put a rule in the VirtualHost config file to force ...
4
votes
1answer
270 views
Apache KeepAlive - why should I ever need it?
I've read several blogs about turning KeepAlive off in apache. When I had it turned on, and a spike in traffic, people started timing out, or had to wait +10 seconds for a page load. However, when I ...
4
votes
1answer
120 views
Apache Virtual Host different depending on client ip?
What I'm trying to accomplish is:
1. A person, with IP 192.168.1.5 loads my webserver (192.168.1.2) and reaches htdocs/
2. Another person, with ip 192.168.1.6 does the same request, and reaches ...
4
votes
2answers
197 views
How does the web server choose between unicode and utf-8 for accented characters?
I have a web server with my ISP which replaces accented characters in URLs with their unicode values: for instance é (eacute) is translated to %e9 (dec 233).
For testing locally I use EasyPHP which ...
4
votes
1answer
2k views
How to write a generic .htaccess file rule, regarding RewriteBase
The following rule in my .htaccess works just fine for routing calls to index.php:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
However, this does not ...
4
votes
0answers
282 views
XAMPP - Unable to serve files larger than ~30MB
I'm developing a site locally with XAMPP on Windows 7, and as far as media is concerned, I'm unable to play media files that are larger than 30MB or so. Both video and audio files (MP4 and MP3 ...
3
votes
1answer
278 views
How do I normalise a URL from a folder to a subdomain?
I have a mybb forum hosted at a folder inside my site, which can also be accessed via a subdomain.
I would like to configure it so that if someone would enter the folder it would automatically be ...
3
votes
2answers
11k views
Can I skip the PEM pass phrase question when I restart the webserver?
After buying a multi-domain SSL certificate I have started testing it with the Nginx webserver (following documentation in their SSL wiki page).
Everything is fine, it works and I get a green ...
3
votes
1answer
331 views
Disallow all user agents except one using .htaccess?
I've been struggling to get this .htaccess working. The aim is to disallow all user agents besides my app. The app sends a GET request with a user agent of lets say 'AcmeUpdater'.
Whenever I try to ...
3
votes
1answer
557 views
How to implement user-friendly paths in PHP without creating a file or directory for each page?
NOTE: My terminology may not be entirely correct. I believe StackExchange does something like what I am asking, in case this can make things clearer.
Using PHP on Apache, I would like to handle URLs ...
3
votes
4answers
226 views
3
votes
1answer
126 views
An apache injection attack?
I encountered a novel (to me anyway) form of injection attack in one of my
logs
login as <!--#exec cmd="ls .."-->
Which looks like someone it trying to trigger sever side includes on
an ...
3
votes
2answers
445 views
Good Book for Managing a Linux Web Server?
I'm being thrust into the role of managing my own web server. I will have access to some managed support, but I need a comprehensive resource I can turn to that covers: command line basics, apache and ...
3
votes
1answer
5k 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 ...
3
votes
2answers
2k 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 ...
3
votes
3answers
451 views
using .htaccess to redirect .asp to .php?
Ahoy all! I've been racking my brain with this one.
I basically just converted all of my pages from ASP code to PHP code. Kept the same filenames.
So, here is the htaccess code I have so far, but ...
3
votes
2answers
5k views
Redirect Permanent and https
I just set up HTTPS on my server, and I have an issue with redirect permanent.
Example http://domain.com/index.html it redirect me to http://www.domain.comindex.html
The / (tail ending slash) is ...
3
votes
2answers
4k views
Rewrite for robots.txt and favicon.ico
I have setup some rules in which subdomains (my users) will default to where I have located the robots.txt, favicon.ico, and crossdomain.xml
therefore if a user creates a site say
...
3
votes
1answer
330 views
subdomains apache rewrite rules
Let's say I have my web folder as public_html. In there I have a sub folder. I can view the folder at:
www.mydomain.com/sub & mydomain.com/sub
What I want is:
sub.mydomain.com
This will show ...
3
votes
2answers
1k views
Track down segmentation faults in PHP? [closed]
I'm looking for a relatively painless way to track down segmentation faults in PHP (as reported in the Apache error log). This is my LAMP setup at the moment:
Linux: OpenSUSE 11.3 x86_64
Apache: ...
3
votes
2answers
54 views
Turning off Webalizer and/or AW Stats
On our dedicated server, we have AW Stats and Webalizer both running.
I see I can turn them off in WHM.
We use Google Analytics, but also AW Stats sometimes. We never use Webzlier. My question is: ...
3
votes
1answer
228 views
Apache utf-8 characters in filename
I can't figure it why I can't open files (photos as a start) that contain utf-8 characters in their file name.
For example, I have the following photo: José-Antonio.jpg , the browser outputs it as ...
3
votes
1answer
183 views
Apache Virtual Host does not work
I've problems setting up a virtual host on windows7, so that I can develop multiple pages on my localhost.
To set up the virtual Host, I've edited 3 Files:
httpd-vhosts.conf in apache\conf\extra
...
3
votes
2answers
187 views
How do sites avoid SEO issues and legalities with subdomain unique ids?
I was looking through a few websites recently and noticed a trend I'm not sure I understand. Sites are creating unique referral URLs for customers in the form of: http://customname.site.com
(If ...
3
votes
1answer
133 views
Subdomain In Addon Domain Is Not Working
I added a new addon domain to my cPanel hosting. With the new added addon domain, I try to make some subdomain of it. But, the subdomain is not working like subfolder does.
This is my situation:
...
3
votes
1answer
134 views
The concept of virtual host and DNS
I have a dedicated server and a mydomain.com (bought from a hosting company). I want to host a website from my dedicated server with the domain mydomain.com i.e. when I enter mydomain.com from browser ...
3
votes
1answer
180 views
URL rewriting via forward proxy
I have an app that runs inside my firewall and talks out to multiple end points via HTTP/HTTPS on a non-standard port e.g. http://endpoint1.domain.com:7171, http://endpoint2.domain.com:7171
What I ...
3
votes
1answer
157 views
Difficulty enabling caching on inherited site
I have been asked to work on a corporate website a previous employee had created.
The site is on shared GoDaddy hosting. One of the first things I noticed (after the 140KB JPEG on the front page, ...
3
votes
1answer
69 views
Transferring local site to shared hosting
I'm looking to setup a simple online text processing tool similar to the Clang demo. The processing program itself is a C++ program which I can modify to provide the desired output I need. Since I use ...
3
votes
1answer
1k views
Use different document root for subfolder of URL
I have an php application that uses an MVC framework.
Lets say it lives here http://domain.com on the web and here /srv/www/domain.com on my server.
I want http://domain.com/blog to use a wordpress ...
3
votes
1answer
135 views
Looking for a step by step guide to URL re-writing with mod_rewrite and other methods
I'm looking for step by step resource about how to rewrite URLs and have a few specific questions.
I've read the documentation on mod_rewrite in Apache, but I still find myself a little lost.
If ...
3
votes
2answers
856 views
Apache2 virtual host localhost doesn't render CSS when offline because of absolute path
I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
3
votes
1answer
2k views
Setting file permissions on linux to allow PHP to write to a directory
I have a website built with Codeigniter and hosted on a Linux box.
I am trying to follow "best practices" when it comes to my file permission settings, but I'm not sure if I completely understand the ...
3
votes
1answer
102 views
404 working only with wrong extension
My 404 .htaccess works very well when I put a wrong extension at it in place of .php.
Unfortunately the 404 does not work when I put a wrong name with .php.
This is my .htaccess code:
<Files ~ ...
3
votes
1answer
373 views
How can I make my binary file is served as binary and not text when user choose “Save Linked File As…” in Safari?
I'm serving a binary file (.IPA) with Ubuntu/Apache 2.2.
When I have chosen Save Linked File As... in Safari, it says it's text file. And it guides me to add .txt extension. However it does not add ...
3
votes
1answer
72 views
How do I differentiate 404 messaging with no dynamic language ability on the web server?
Depending on the type of page visited (for example, “static” content vs. product page), we have a requirement to show different error messaging when the page requested is not found. Given that we are ...
3
votes
2answers
37 views
making www.foo.com go to srv5.bar.net/~foo
What I need accomplished is when a person out there in internet-land types in www.foo.com they are actually getting served content from srv5.bar.net/~foo
I have root access to both the nameserver ( ...
3
votes
1answer
128 views
Reading apache logs is there a way i can know of concurnent users limit?
I want to know on a analysis layer from apache logs which can tell me if the # of concurrent logins (using same username) has exceeded e.g more then 4.
Is such a thing can be automated or it requires ...
3
votes
1answer
115 views
How to get rid of crawling errors due to the URL Encoded Slashes (%2F) problem in Apache
The Google web crawler has indexed a whole set of URLs with encoded slashes (%2F) for our site. I assume it has picked up the pages from our XML sitemap file. The problem is that the live pages will ...
3
votes
1answer
392 views
Password protect an alias virtual directory
I have a main domain being hosted through CPanel. I also have a sub-domain that I would like to appear as a path under the main domain instead of as a sub-domain. So I have:
http://example.com/ ...
3
votes
1answer
576 views
Apache, www-data and custom user permission
I'm running an ubuntu server with apache and I have web directory which is owned by the user www-data and the group www-data. WordPress works great in this directory. It can auto update and I can ...
3
votes
3answers
282 views
.htaccess URL rewrite
I used to have a rewrite rule to
RewriteRule ^([^/]+)\.htm$ index.php?c=$1 [NC]
RewriteRule ^([^/]+)\.htm/([0-9.]+)$ index.php?c=$1&amt=$2 [NC]
Now, I have to change to
RewriteRule ...
3
votes
2answers
842 views
How to configure apache to allow access to subdomain on my local ip address
I would like to have others inside my local network access resources on my computer at outsideprojects.192.168.0.10. I am running Apache and have a virtual host configured so I can access it at ...
2
votes
4answers
892 views
How can i check how many users can visit my website at the same time?
i have my website on a shared webhosting account.
I would like to check how many people can visit my site at the same time without the server slowing down or crashing.
I don't have SSH, if that makes ...
2
votes
5answers
483 views
Is it dangerous to keep Thumbs.db on a web server?
Windows Thumbs.db system files that are in most of folders were uploaded with all other files from the localhost to the server.
Is it dangerous, if you forget to delete them on the server?
I am on ...
2
votes
4answers
3k views
How do I hide the port in my URL?
What am I missing? If I go to mysite.com:9999 I get my site, but not mysite.com Obviously the users shouldn't need to type in the port, so what do I need to do? I'm not really trying to hide the ...

