LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-01-2007, 01:29 PM   #1
luciusl
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Question apache directory change


This may sound elementary, but I need to know how to change the ServerName, ServerAdmin, etc.
I know I need to: <Directory /etc/apache2/httpd.conf>, but how do I separate into multiple lines?
I cannot enter everything on one line, right?
Need help.
Thanks
 
Old 03-02-2007, 06:10 AM   #2
pk2001
LQ Newbie
 
Registered: Feb 2007
Location: Singapore
Distribution: Debian Sarge/Etch
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by luciusl
This may sound elementary, but I need to know how to change the ServerName, ServerAdmin, etc.
I know I need to: <Directory /etc/apache2/httpd.conf>, but how do I separate into multiple lines?
I cannot enter everything on one line, right?
Need help.
Thanks
I am not exactly sure what you are trying to achieve, however for the majority of the configuration work for apache2 you need to work with /etc/apache2/apache2.conf

If your question is on how to edit this file, I suggest that vi is the best choice. If you have never worked with vi, then this link will guide you through the most of it:
http://networking.ringofsaturn.com/Unix/viguide.php

With regards to changing the name of the server (host name), that would be a (for instance in Debian) a change to the hostname which is contained in /etc/hostname file (again editable with vi). Don't forget to also make the change to your /etc/hosts file so that your new hostname is mapped to your server's ip address.

I hope this is helpful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need to link a home directory to an apache directory Melsync Linux - Server 3 09-30-2006 05:08 AM
How Do I Change The Default Directory For Apache? Tear Syden Linux - Newbie 4 03-21-2006 10:16 PM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Letting normal user change apache directory nivek7 Linux - General 9 05-04-2004 06:58 PM
mountig - change ro to rw, delete directory, change rw to ro ?? itsjustme Linux - General 6 10-17-2003 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration