Lost httpd.conf file located apache [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. Improve this question How can I find where my httpd.conf file is located? I am running an Ubuntu Linux server from the Amazon Web Services EC2 … Read more

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 works, even simple ones like RewriteRule not_found %{DOCUMENT_ROOT}/index.php?page=404 All the rules I’m using are working on my hosting, so they should be ok, so my question is, … Read more

Error message “Forbidden You don’t have permission to access / on this server” [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 3 years ago. Improve this question I have configured my Apache by myself and have tried to load phpMyAdmin on a virtual host, but I … Read more

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? 10 s 10 The HTTP_HOST is obtained from the HTTP request header and this is what the client actually used as “target host” of the request. The SERVER_NAME is defined in server config. Which … Read more

Multisite htaccess on localhost with WP as an SVN external?

I’ve mimicked Otto’s setup here: http://ottopress.com/2011/creating-a-wordpress-site-using-svn/ and my brief example is below. That tutorial is specific to a single site install, and specifies a single domain. How can I customize the htaccess below to be suitable for multisite? Note that the multisite htaccess WordPress provides doesn’t work because the wp directory is custom. Directory Setup … Read more

Ruby on Rails Server options [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

WordPress Theme’s 404.php not found, server defaults to Apache’s own 404 page

if I just type something to provoke a 404 Error on my WordPress installation, WordPress doesn’t load its own 404.php file, but the Apache server’s own 404 error message gets displayed. What is wrong with my WordPress installation? Do I need to edit the Apache server’s config file and redirect to the WordPress 404.php page? … Read more

Use subdomain for certain urls

I have the following rules in my .htaccess file on a WordPress (single installation): # REWRITE FORUMS DOMAIN TO FOLDER RewriteCond %{HTTP_HOST} ^forums\.example\.com$ RewriteRule !^forums/? forums%{REQUEST_URI} [NC,L] # REWRITE FORUMS FOLDER TO SUBDOMAIN RewriteCond %{THE_REQUEST} \s/forums/([^\s]*) [NC] RewriteRule ^ http://forums.example.com/%1 [R=301,L] This is so that the forums that exist at http://example.com/forums are accessed at http://forums.example.com/ … Read more