Skip to main content

Questions tagged [apache]

Use this tag (along with an appropriate programming-language tag) for programming questions relating to the Apache HTTP Server. Do not use this tag for questions about other Apache Foundation products. Note that server configuration questions are usually a better fit on https://serverfault.com

1358 votes
13 answers
212k views

UTF-8 all the way through

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where ...
mercutio's user avatar
  • 22.4k
684 votes
8 answers
608k views

Difference between the Apache HTTP Server and Apache Tomcat? [closed]

What is the difference in terms of functionality between the Apache HTTP Server and Apache Tomcat? I know that Tomcat is written in Java and the HTTP Server is in C, but other than that I do not ...
kaybenleroll's user avatar
  • 16.9k
598 votes
1 answer
97k views

Ruby on Rails Server options [closed]

The whole issue of setting up a development server for my Ruby on Rails application confuses me. There are WEBrick, Mongrel, Passenger, Apache, Nginx and many more I am sure, and I don't really ...
pingu's user avatar
  • 8,777
579 votes
11 answers
476k views

What is the difference between HTTP_HOST and SERVER_NAME in PHP?

What is the difference between $_SERVER['HTTP_HOST'] and $_SERVER['SERVER_NAME'] in PHP? When would you consider using one over the other and why?
Emanuil Rusev's user avatar
577 votes
34 answers
2.6m views

Error message "Forbidden You don't have permission to access / on this server" [closed]

I have configured my Apache by myself and have tried to load phpMyAdmin on a virtual host, but I received: 403 Forbidden You don't have permission to access / on this server My httpd.conf # # This ...
Dmytro Zarezenko's user avatar
549 votes
15 answers
1.5m views

How to enable mod_rewrite for Apache 2.2

I've got fresh install of Apache 2.2 on my Vista machine, everything works fine, except mod rewrite. I've uncommented LoadModule rewrite_module modules/mod_rewrite.s but none of my rewrite rules ...
Jakub Arnold's user avatar
  • 86.7k
521 votes
2 answers
1.1m views

Lost httpd.conf file located apache [closed]

How can I find where my httpd.conf file is located? I am running an Ubuntu Linux server from the Amazon Web Services EC2 (Elastic Compute Cloud) and I can't find my Apache config.
Shalin Shah's user avatar
  • 8,163
463 votes
60 answers
2.3m views

How to solve "Error: Apache shutdown unexpectedly"?

I've just re-installed XAMPP, and when I try to start my Apache server in the XAMPP Control Panel, I now get the following errors: 16:50:25 [Apache] Status change detected: running 16:50:26 [...
Tomas Skovgaard's user avatar
420 votes
22 answers
802k views

How to set up file permissions for Laravel?

I'm using Apache Web Server that has the owner set to _www:_www. I never know what is the best practice with file permissions, for example when I create new Laravel 5 project. Laravel 5 requires /...
Robo Robok's user avatar
  • 22.2k
420 votes
37 answers
951k views

PHP code is not being executed, but the code shows in the browser source code

I'm trying to execute some PHP code on a project (using Dreamweaver) but the code isn't being run. When I check the source code, the PHP code appears as HTML tags (I can see it in the source code). ...
Gui's user avatar
  • 9,695
418 votes
15 answers
386k views

Auto reloading python Flask app upon code changes

I'm investigating how to develop a decent web app with Python. Since I don't want some high-order structures to get in my way, my choice fell on the lightweight Flask framework. Time will tell if this ...
Passiday's user avatar
  • 7,905
415 votes
9 answers
531k views

.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

I have this error when trying to browse php files locally [Fri Apr 13 19:16:40 2012] [alert] [client 127.0.0.1] C:/AppServ/www/hr-website/.htaccess: Invalid command 'RewriteEngine', perhaps ...
Adham's user avatar
  • 64.5k
401 votes
10 answers
300k views

Apache and Node.js on the Same Server

I want to use Node because it's swift, uses the same language I am using on the client side, and it's non-blocking by definition. But the guy who I hired to write the program for file handling (...
Matt's user avatar
  • 5,643
334 votes
6 answers
280k views

Make XAMPP / Apache serve file outside of htdocs folder [closed]

Is it possible to configure xampp to serve up a file outside of the htdocs directory? For instance, say I have a file located as follows: C:\projects\transitCalculator\trunk\TransitCalculator.php ...
cmcculloh's user avatar
  • 48.3k
332 votes
14 answers
638k views

htaccess redirect to https://www

I have the following htaccess code: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond !{HTTPS} off RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{...
bigben's user avatar
  • 3,381

15 30 50 per page
1
2 3 4 5
6167