Question:
missing httpd.conf file?
Wesley H 1980
2013-02-15 22:57:53 UTC
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/php/how-to-setup-a-dedicated-web-server-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 DocumentRoot. But the httpd.conf file is nowhere to be found. I"m at a loss. Every possible location this dumb file is suppsed to be ( according to web site searching ) its not.

The site is up perfectly. I just want to add some links. Is there a way to view the DOcumentROot from the command line? ANy ideas on what needs to be done?
Three answers:
t
2013-02-15 23:51:10 UTC
Name might be apache2.conf (look in /etc/apache2/).

Did you try using links without the site name? E.g. /site2.html
rhino
2013-02-15 23:33:04 UTC
create one. There's alot of info in a httpd.config so the best thing to do would be copy one froman existing website. I'm not sure if this will work or not but it's worth a shot maybe. You may have to do some google searches and change a few settings but it may work as is. BTW this is off of an Apache server.



Listen 80

ServerRoot /usr/local/apache2

DocumentRoot /usr/local/webroot



ServerName localhost:80

ServerAdmin admin@localhost



ServerSignature On

ServerTokens Full



DefaultType text/plain

AddDefaultCharset ISO-8859-1



UseCanonicalName Off



HostnameLookups Off



ErrorLog logs/error_log

LogLevel warn



PidFile logs/httpd.pid



Timeout 300



KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15



User nobody

Group nobody





MaxClients 150

StartServers 5

MinSpareServers 5

MaxSpareServers 10

MaxRequestsPerChild 0







StartServers 2

MaxClients 150

MinSpareThreads 25

MaxSpareThreads 75

ThreadsPerChild 25

MaxRequestsPerChild 0







LoadModule access_module modules/mod_access.so

LoadModule deflate_module modules/mod_deflate.so

LoadModule log_config_module modules/mod_log_config.so

LoadModule headers_module modules/mod_headers.so

LoadModule setenvif_module modules/mod_setenvif.so



LoadModule ssl_module modules/mod_ssl.so



LoadModule mime_module modules/mod_mime.so

LoadModule status_module modules/mod_status.so

LoadModule info_module modules/mod_info.so

LoadModule dir_module modules/mod_dir.so

LoadModule php4_module modules/libphp4.so









AddOutputFilterByType DEFLATE text/html text/plain text/css



Header append Vary User-Agent













Options FollowSymLinks

AllowOverride None

order allow,deny

deny from all









order allow,deny

allow from all









LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined

CustomLog logs/access_log combined



DeflateFilterNote Input instream

DeflateFilterNote Output outstream

DeflateFilterNote Ratio ratio

LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate

CustomLog logs/deflate_log deflate









DirectoryIndex index.html index.php







TypesConfig conf/mime.types

AddType application/x-tar .tgz

AddType application/x-rar-compressed .rar



AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps









BrowserMatch "Mozilla/2" nokeepalive

BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

BrowserMatch "RealPlayer 4\.0" force-response-1.0

BrowserMatch "Java/1\.0" force-response-1.0

BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully

BrowserMatch "^WebDrive" redirect-carefully

BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully

BrowserMatch "^gnome-vfs" redirect-carefully



BrowserMatch ^Mozilla/4 gzip-only-text/html

BrowserMatch ^Mozilla/4\.0[678] no-gzip

BrowserMatch \bMSIE !no-gzip !gzip-only-text/html









ExtendedStatus On



SetHandler server-status

Order deny,allow

Deny from all

Allow from 127.0.0.1











SetHandler server-info

Order deny,allow

Deny from all

Allow from 127.0.0.1









Include conf/ssl.conf

anette
2016-09-17 08:13:21 UTC
This sounds weird


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...