Questions tagged [httpd.conf]

The main configuration file of Apache HTTP Server is usually called httpd.conf

The main configuration file of Apache HTTP Server is usually called httpd.conf. The location of this file is set at compile-time but may be overridden with the -f command line flag.

2031 questions
573
votes
34 answers

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

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 is the main Apache HTTP server configuration file.…
Dmytro Zarezenko
  • 10,526
  • 11
  • 62
  • 104
520
votes
2 answers

Lost httpd.conf file located apache

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
  • 8,145
  • 6
  • 31
  • 44
260
votes
9 answers

Apache Proxy: No protocol handler was valid

I am trying to proxy a subdirectory to another server. My httpd.conf: RewriteEngine On ProxyPreserveHost On RewriteRule .*subdir/ https://anotherserver/subdir/ [P] The problem is that Apache is always logging this: AH01144: No protocol handler was…
das_j
  • 4,444
  • 5
  • 31
  • 47
258
votes
13 answers

How to automatically redirect HTTP to HTTPS on Apache servers?

Environment Centos with apache Trying to setup automatic redirection from http to https From manage.mydomain.com --- To ---> https://manage.mydomain.com I have tried adding the following to my httpd.conf but it didn't work RewriteEngine on …
Deano
  • 11,582
  • 18
  • 69
  • 119
198
votes
26 answers

Accessing localhost (xampp) from another computer over LAN network - how to?

I have just set up a wi-fi network at home. I have all my files on my desktop computer (192.168.1.56) and want to access localhost over there from another computer (192.168.1.2). On my desktop I can access localhost through the normal…
bcosynot
  • 5,653
  • 10
  • 34
  • 47
141
votes
2 answers

how to configure apache server to talk to HTTPS backend server?

I configured apache server as a reverse proxy and it works fine if I point a backend server as HTTP. That is: I configured virtual host 443 like: ProxyPass /primary/store http://localhost:9763/store/ ProxyPassReverse /primary/store…
Ratha
  • 9,434
  • 17
  • 85
  • 163
102
votes
26 answers

WAMP 403 Forbidden message on Windows 7

I have installed WAMP version 2.1 on my windows 7 machine. When i browse to localhost in my browser, the WAMP server page is visible. But when I browse to my IP in my browser, I get the message 403 Forbidden: You don't have permission to access /…
Jake
  • 16,329
  • 50
  • 126
  • 202
88
votes
5 answers

How to install mod_ssl for Apache httpd?

Ok So I installed Apache httpd a while ago and have recently come back to it to try setup SSL and get it serving several different tomcat servers. At the moment I have two completely separate Tomcat instances serving up to slightly different…
Nick Foote
  • 2,425
  • 9
  • 36
  • 47
68
votes
6 answers

Forbidden You don't have permission to access / on this server

All I wanted to do today was to write a redirect rule to a subfolder, e.g.: You enter the URL: example.com and you get redirected to example.com/subfolder Such a simple wish. I tried to find a solution on the internet. The internet told me to add an…
QuantumHive
  • 5,613
  • 4
  • 33
  • 55
45
votes
14 answers

Apache could not be started - ServerRoot must be a valid directory and Unable to find the specified module

I'm using xampp portable server and I'm having some trouble with Apache http server, it says "ServerRoot must be a valid directory" Command line output: Please close this command only for Shutdown Apache 2 is starting ... httpd.exe: Syntax error on…
BackSlash
  • 21,927
  • 22
  • 96
  • 136
41
votes
8 answers

How to enable a directory listing in Apache web server

I am not able to enable directory listing in my Apache web server. I have tried various solutions posted, but it is not working. I just freshly installed httpd 2.4.6 and enabled HTTPS using ssl.conf under the /etc/httpd/conf.d/ssl.conf directory and…
Satish Burnwal
  • 487
  • 1
  • 4
  • 11
39
votes
8 answers

.htaccess: RewriteEngine not allowed here

I uploaded the .htaccess to the server and received an Error 500 (Internal Server Error). And in the error log I had the following error: .../.htaccess: RewriteEngine not allowed here But mod_rewrite.so is enabled. So, do I need to change
user317005
38
votes
3 answers

How to add comment in apache httpd.conf not as a complete line?

In an apache conf file, if a line is start with #, that line is counted as comment. For example, #This is a comment line #And then the following is some real settings: AllowOverride None However, this is not allowed. #And then the following is some…
cytsunny
  • 4,838
  • 15
  • 62
  • 129
38
votes
3 answers

How to edit httpd.conf file in AMAZON EC2

I am new on AMAZON EC2 Server, recently I have Installed PHP and MySQL and now I want to update file /etc/httpd/conf/httpd.conf but the problem is, when I am going to update it, it display error like - Permission denied. What is the best way to…
Sumit Bijvani
  • 8,154
  • 17
  • 50
  • 82
37
votes
5 answers

Apache VirtualHost slow lookup

I finally managed how to configure properly httpd.conf for my virtualhost needings. This is the relevant part of httpd.conf file NameVirtualHost *:80 ServerName localhost DocumentRoot…
Leonardo Rossi
  • 2,922
  • 2
  • 20
  • 28
1
2 3
99 100