httpd.conf <Directory> question
location: linuxquestions.com - date: February 12, 2005
The URL is:
In the httpd.conf under the <Directory> section,
how do I configure it such that:
index.php is shows up when the user enters "http://192.168.3.200/pir/"
index.html should not be directly accessed in the "pir" directory
index.php and index.html should not be accessed in any sub-directory under "pir"
/etc/httpd.conf': No such file or directory
location: ubuntuforums.com - date: May 19, 2011
I'm on the verge of setting up a webserver on my newly installed ubuntu desktop 11.04. I've done the dyndns, port forwarding ok and get a index / page when i access my URL.
i only installed apache2, and since then found out about LAMP, so installed the following:
sudo apt-get install php5
sudo apt-get install mysql-server
Then i've followed the link
I got as far as backing up my .conf file using:
sudo cp /etc/httpd.conf /etc/httpd.conf_backup
and now it says
cp: cannot stat `/etc/httpd.conf': No such file or directory
I've restarted apache and now get this:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Restrict access to a directory in httpd.conf
location: linuxquestions.com - date: September 29, 2011
I am trying to restrict a given IP address from accessing scripts in a given directory from their web browser.
I put the following in my httpd.conf file:
Allow from all
Deny from 220.127.116.11
This does not do the trick. Is there something else I need to do to accomplish this feat using httpd.conf?
(I know I can put a REJECT rule in my firewall,and I know about squid.
I have been directed to do this via httpd.conf, unless it is not
My OS is RHEL 5.5.
Apache gripe multiple directory listing httpd.conf
location: linuxquestions.com - date: April 26, 2007
Hi guys. I've posted all over the place for info on Apache and knowing this is the only decent forum on anything open source hope I can get an answer here.
I am running Apache 2.2.4 in Winxp and migrating to my Linux server once I have tested it.
I have set the root directory in httpd.conf to a different drive and this serves files perfectly from this directory. However, I wish to serve files using the standard 'Fancy Listing' format with a few tweaks:
Sort with directories at the top of the list, not file name order
Show FULL filenames, not cropped, and lastly and hardest..
Serve files from multiple directories without using symlinks
I was reading on all these and can't find anything in my httpd.conf or any other .conf. Name_Width isn't a valid field anymore?
I think I can list multiple directories with Aliases but my attempts have failed.
For demonstration purposes:
I have several drives with files I wish to host. I set the DocumentRoot as "J:\General"
apache / httpd.conf question
location: linuxquestions.com - date: June 2, 2013
I just installed apache2 on a debian box and am trying to configure apache for use w/ the auth_kerb module. The directions I'm following say to add certain lines to httpd.conf. I have an apache2.conf file w/ data in it but httpd.conf is blank. It's been a while since I last used apache but from what I remember, httpd.conf was the programs main configuration file. What's the deal w/ that?
Modifying httpd.conf to Password Protect Directory
location: ubuntuforums.com - date: July 14, 2010
This problem has been addressed numerous times before, but for some odd reason the steps that have solved others' problems fail to address mine.
Here's the synopsis of the issue: I can't password protect a directory I'm serving with Apache. I'll call this directory "c".
Here's how I've modded my httpd.conf file:
# AllowOverride All
AuthName "Restricted Files"
Require user toor
The file /etc/apache2/c.htpasswd was generated with the following command:
htpasswd -c /etc/apache2/c.htpasswd toor
And I reloaded the server after this.
This is my fifth time trying this. I attempted to modify the location of the password file, commenting out the "AllowOverride" directive, and putting said code into the file '000-default' in /etc/apache2/s
Cannot find httpd.conf in Ubuntu
location: ubuntuforums.com - date: October 28, 2012
I have just installed Apache2 in my Ubuntu 12.10 desktop, the web server is working when I visit http://localhost/, the thing is I can't find the file "httpd.conf", i looked every where, also used the command:
sudo find / -name "httpd.conf"
What is going on?
missing httpd.conf file?
location: ubuntuforums.com - date: February 16, 2013
Hi everyone. I'm new to the forum, so please excuse if I'm not posting in the correct spot. BTW, I'm a WIndows Server Admin, with limited Apache/Ubuntu server knowledge.
So, I work in a company that is upgrading an Exchange server. In the event that something goes terribly wrong, I wanted to set up a very simple site to guide users on what needs to be done on their end.
I followed directions at: http://net.tutsplus.com/tutorials/ph...rver-for-free/ and was able to quickly set up an Ubuntu server. Works great! I just modified the /var/www/index.html to display what I want, and done! With a quick entry in the company DNS server, my site SystemStatus now works and everyone sees my page.
The problem is now that other sites (satelitte offices) liked the idea, and wanted to add their info to this intranet site. So I simply created links to http://(sitename)/site2.html and put the site2.html in the /var/www folder. Didn't work. After some research, I found that you have to change the
Virtual Hosts and httpd.conf
location: ubuntuforums.com - date: June 2, 2012
How the virtual hosts and httpd.conf file are related?
if i want to run two domain , how can i do that .Each domain require httpd.conf or just one is enough
Can't Find httpd.conf in usual places and locate command does not find it
location: ubuntuforums.com - date: January 9, 2013
For some reason I don't have httpd.conf in /etc/apache2 on my Ubuntu 12.10 machine. apache2.conf is there. locate httpd.conf is not finding it either. I may try re-installing apache2 but now I am just curious whats going on?
According to this shouldn't it be in /etc/apache2:
Server version: Apache/2.2.22 (Ubuntu)
Server built: Nov 6 2012 20:27:19
Server's Module Magic Number: 20051115:30
Server loaded: APR 1.4.6, APR-Util 1.4.1
Compiled using: APR 1.4.6, APR-Util 1.4.1
Server MPM: Prefork
forked: yes (variable process count)
Server compiled with....
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
Page: 1 2 3 4 5 6 7 8 9 10