
04-06-2003, 02:55 PM
|
|
WHT Addict
|
|
Join Date: Nov 2002
Location: Europe
Posts: 122
|
|
Heres the problem: I have a dedicated server on which I am running few websites. I had this guy helping me with setting up one of the websites with special needs, but cant get a hold of him since hes out of country now.. He set it the way that this website content was located at /var/webroot/ . All good, until I have decided to allow more bandwidth for this website (using the ensim control panel to do the job for me - through which the site was at first set up). Doing this, Ensim made the desired changes, but has also reseted other settings to default (thus nullifying this guys work) and now my webiste its again pointing to: /var/www/html/ , instead of /var/webroot/ where the content is actually located at.
So my question is, what do I have to do in order to make sure that when person visits my website is pointed to the right area of my server and not to the default part, set by ensim. I hope Im clear enough and that you understand the situation I found myself in  Thanks!
PS: I hope this is the right section of WHT to post this in..
|

04-06-2003, 07:13 PM
|
|
WHT Addict
|
|
Join Date: Nov 2002
Location: Europe
Posts: 122
|
|
Cmon guys, I really need to know  Anyone? Thanks.
|

04-07-2003, 12:59 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Mar 2003
Location: Kansas City, MO
Posts: 66
|
|
This belongs in : WebHostingTalk Forums > Main Forums > Technical & Security Issues
|

04-07-2003, 01:09 AM
|
|
Web Hosting Master
|
|
Join Date: Aug 2002
Location: Chicago
Posts: 563
|
|
Quote:
Originally posted by Promethyl
This belongs in : WebHostingTalk Forums > Main Forums > Technical & Security Issues
|
Thanks a lot for nothing dude 
|

04-07-2003, 01:13 AM
|
|
Retired Moderator
|
|
Join Date: Dec 2000
Location: Leesburg, VA
Posts: 3,205
|
|
MOD Note: Moved
You will need to make the change in the httpd.conf, but whenever you make changes through the control panel it will overwrite the changes you made.
|

04-07-2003, 04:51 AM
|
|
Junior Guru
|
|
Join Date: Dec 2002
Location: London
Posts: 179
|
|
first of all sorry nobody is being very helpful to you
at the moment
anyway : to make matters worse I know nothing about all these control panels.
I hack around with apache form source.
and the following solution is a command line solution that I use.
I would
back up all the current websites
re configure apache (I do it command line ) it's the httpd.conf manually. I assume control panels are just front ends for editing httpd.conf etc..
I think you need ot know about apache configuration for multiple websites
I have a few "quick tips" on configuring apache for multiple websites (name based virtual hosting) on my website.
check out the quick tips on
MOD Note: Participants may not use the Forum to direct others to any pages which they have a commercial interest in, these include commission or referral hyperlinks.
I guess the "virtual hosts on Apache " is the one you should read
best of luck and sorry I don't use control panels
hololi
Last edited by allan; 04-07-2003 at 07:40 AM.
|

04-07-2003, 08:44 AM
|
|
WHT Addict
|
|
Join Date: Nov 2002
Location: Europe
Posts: 122
|
|
Quote:
Originally posted by allan
MOD Note: Moved
You will need to make the change in the httpd.conf, but whenever you make changes through the control panel it will overwrite the changes you made.
|
Thanks Allan, Im aware that Ensim will reset those settings every time I use it. But untill I come up with better solution Ill just have to stick to this. If its just one file that has to be edited, added few lines, then I can just keep those lines saved on my pc and everytime this occurs, I can just add them where they are supposed to be. I dont even use ensim all that often so it shouldnt be a problem. However, could somebody explain a bit more about this httpd.conf editing to me? Im sorry, but Im a newbie when it comes down to that..
Hololi: Thanks for your help as well  As I said, Im a newbie when it comes to manually configuring Apache 
|

04-07-2003, 10:15 AM
|
|
Web Hosting Master
|
|
Join Date: Dec 2001
Location: Singapore
Posts: 747
|
|
cd /var/www
mv html html-moved
ln -s /var/webroot/ html

__________________
███ .
███ .. ...
███
███ fulltime sysadmin since 1997!
|

04-08-2003, 09:45 AM
|
|
WHT Addict
|
|
Join Date: Nov 2002
Location: Europe
Posts: 122
|
|
Thanks admin0  Theres only one question left: Where and how the hell do I edit this httpd.conf?  I know, I know... RTFM right? Just tell me guys, please. Curently 700 daily uniques are going into nothing..
|

04-08-2003, 10:31 AM
|
|
Web Hosting Guru
|
|
Join Date: Feb 2003
Posts: 267
|
|
First of all, how can you run a web hosting business if you cant even figure out how to edit httpd.conf. It really is depressing to see such a lack of basic unix skills.
locate httpd.conf !!!!!!!
then vi/joe/pico/ httpd.conf
|

04-08-2003, 10:46 AM
|
|
Retired Moderator
|
|
Join Date: Jan 2003
Posts: 9,002
|
|
Quote:
Originally posted by rackyou
Thanks admin0 Theres only one question left: Where and how the hell do I edit this httpd.conf? I know, I know... RTFM right? Just tell me guys, please. Curently 700 daily uniques are going into nothing..
|
If you did what sash i advised, you do not need to edit httpd.conf.
ps. His solution is better than editing httpd.conf as any control panel changes do not affect it
Last edited by sprintserve; 04-08-2003 at 11:06 AM.
|

04-08-2003, 11:01 AM
|
|
Web Hosting Master
|
|
Join Date: Dec 2001
Location: Singapore
Posts: 747
|
|
Quote:
Originally posted by sprintserve
If you did what sasha advised, you do not need to edit httpd.conf.
ps. His solution is better than editing httpd.conf as any control panel changes do not affect it
|
shashi // [sasha is a female name  ]
with my steps, you never need to edit the httpd.conf. and no matter what changes the control panel makes, it will always work.
Note:
special Thanks to sprintserve

__________________
███ .
███ .. ...
███
███ fulltime sysadmin since 1997!
|

04-08-2003, 02:01 PM
|
|
WHT Addict
|
|
Join Date: Nov 2002
Location: Europe
Posts: 122
|
|
Quote:
Originally posted by sethgarnar
First of all, how can you run a web hosting business if you cant even figure out how to edit httpd.conf. It really is depressing to see such a lack of basic unix skills.
locate httpd.conf !!!!!!!
then vi/joe/pico/ httpd.conf
|
I aint running webhosting biz, so chill out  Last time I checked, this was open forum for who ever finds its info helpfull..
Admin0 & Sprintserve: Tanks a lot  Ive got little confused since few other guys were mentioning httpd.conf and thought this has something to do with it..
|

04-09-2003, 01:49 AM
|
|
Newbie
|
|
Join Date: Apr 2003
Location: Minnesota
Posts: 15
|
|
If you wanted to edit the httpd.conf file...
httpd.conf is the primary config file for Apache. The directive you are looking for is DocumentRoot. There may be more than one based on multiple web sites configured.
Your DocumentRoot is set to /var/www/html and you want it set to /var/webroot/
When you edit this file, search for /var/www/html and simply change it to /var/webroot/
Afterwards you will need to stop/start the httpd process.
I am not familiar with Ensim either, but if you need a quick fix and wanted to edit httpd.conf that should be all you need to do.
Look for something like this:
<VirtualHost *>
DocumentRoot /www/example1
ServerName www.example1.com
# Other directives here
</VirtualHost>
Assuming you are running Linux you should be able to find the httpd.conf file using (as another poster stated):
locate httpd.conf
Good luck.
|

04-09-2003, 02:10 AM
|
|
Registered User
|
|
Join Date: Apr 2003
Location: USA, PA/CA
Posts: 26
|
|
poor guy is going to have a hard time trying to choose which way to screw his server - thanks guys..
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|