image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old June 22nd, 2004, 12:03 PM
Twiggy
 
Join Date: Nov 2002
Location: Far, far, away!
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Hype.it is on a distinguished road
editing httpd.conf??

Help.. does anyone know how i edit this file? What command i use in terminal and erm... how i get above root (as in webserver) access?
__________________
Wow... now even cuter! Meow!

Workstation:G5 Dual 2Ghz 8Gb Ram, 160GB Serial ATA (system) & SohoRaid 250Gb x2 (work), ATI RADEON 9600 Pro, 20" Apple Display, iSticks with Sub Laptop: PowerBook G4 15", 768Mb Ram, 60Gb HD & SuperDrive Connection: 6Mbit ADSL with P2P Music: Samsung YP-55 256Mb MP3 Player Sennheiser HD-25 closed head phones. Mobile: Sony Ericsson P900 with 128Mb MemoryDuo
Reply With Quote
  #2  
Old June 22nd, 2004, 12:27 PM
Person that uses a Mac
 
Join Date: Nov 2003
Location: Berea, Ohio
Posts: 402
Thanks: 0
Thanked 0 Times in 0 Posts
btoth is on a distinguished road
Quote:
Originally Posted by Hype.it
Help.. does anyone know how i edit this file? What command i use in terminal and erm... how i get above root (as in webserver) access?

At the terminal:

$ cd /etc/httpd
$ sudo <name of program/command> httpd.conf

sudo will ask you for your admin password and will allow you to save changes to the file. If you use BBEdit, you don't need to do that step, but if you wanted to edit it with pico for example you would type:

$ sudo pico httpd.conf

Or try

$ sudo open httpd.conf to have the Finder open it in the default App.
__________________
Mac Software by Me - ImageReel, Google Maps Address Book Plugin.
Reply With Quote
  #3  
Old July 20th, 2004, 03:29 PM
Twiggy
 
Join Date: Nov 2002
Location: Far, far, away!
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Hype.it is on a distinguished road
thanks... btoth.

But now i like to setup some sub-domains and have above root (or document in webserver, not user) access in my webserver for the storage of config files. Anyone know how i do this?
__________________
Wow... now even cuter! Meow!

Workstation:G5 Dual 2Ghz 8Gb Ram, 160GB Serial ATA (system) & SohoRaid 250Gb x2 (work), ATI RADEON 9600 Pro, 20" Apple Display, iSticks with Sub Laptop: PowerBook G4 15", 768Mb Ram, 60Gb HD & SuperDrive Connection: 6Mbit ADSL with P2P Music: Samsung YP-55 256Mb MP3 Player Sennheiser HD-25 closed head phones. Mobile: Sony Ericsson P900 with 128Mb MemoryDuo
Reply With Quote
  #4  
Old July 20th, 2004, 05:05 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
Do you mean you want to set up things like subdomain.hype.it ?

That will be in a VirtualHost (Section 3) directive near line 1029, just set the DocumentRoot directive to whatever folder you want.
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
  #5  
Old July 20th, 2004, 05:37 PM
Twiggy
 
Join Date: Nov 2002
Location: Far, far, away!
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Hype.it is on a distinguished road
Quote:
Originally Posted by michaelsanford
Do you mean you want to set up things like subdomain.hype.it ?

That will be in a VirtualHost (Section 3) directive near line 1029, just set the DocumentRoot directive to whatever folder you want.
Thanks you, that's one thing, then there is the other...

Currently as it stand it's appears to be like this (which is the default)

URL "http://127.0.0.1/"

Path: "/Library/WebServer/Documents/"
Path: "/Library/WebServer/CGI-Executables/"


And any config files would be contained within Documents or maybe in CGI-Bin. Either way, they are accessible to users. What i'd like to know, is there a way to place them 'out of documents or www' into another folder that's considered above or out of web access. Which only the server can see, such as:

Path: "/Library/WebServer/ConFigs"

Thanks in advance.
__________________
Wow... now even cuter! Meow!

Workstation:G5 Dual 2Ghz 8Gb Ram, 160GB Serial ATA (system) & SohoRaid 250Gb x2 (work), ATI RADEON 9600 Pro, 20" Apple Display, iSticks with Sub Laptop: PowerBook G4 15", 768Mb Ram, 60Gb HD & SuperDrive Connection: 6Mbit ADSL with P2P Music: Samsung YP-55 256Mb MP3 Player Sennheiser HD-25 closed head phones. Mobile: Sony Ericsson P900 with 128Mb MemoryDuo

Last edited by Hype.it; July 21st, 2004 at 11:36 AM.
Reply With Quote
  #6  
Old July 20th, 2004, 09:51 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
What config files do you mean ? Do you mean like PHP/CGI script files or server configuration files of some kind ?
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
  #7  
Old July 21st, 2004, 11:39 AM
Twiggy
 
Join Date: Nov 2002
Location: Far, far, away!
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Hype.it is on a distinguished road
Server configuration files and various things that need to be hidden from user access, only need server read and possibly execute rights.

configs.php
includes
global includes

eCommerce dbconfigs.php


I could do it on my former host with the help of the hostmaster doing something but now I've chosen to build a dedicated server and co-locate later. Anyway, this is for a off-line testing server

Please help.
__________________
Wow... now even cuter! Meow!

Workstation:G5 Dual 2Ghz 8Gb Ram, 160GB Serial ATA (system) & SohoRaid 250Gb x2 (work), ATI RADEON 9600 Pro, 20" Apple Display, iSticks with Sub Laptop: PowerBook G4 15", 768Mb Ram, 60Gb HD & SuperDrive Connection: 6Mbit ADSL with P2P Music: Samsung YP-55 256Mb MP3 Player Sennheiser HD-25 closed head phones. Mobile: Sony Ericsson P900 with 128Mb MemoryDuo

Last edited by Hype.it; July 23rd, 2004 at 02:49 AM.
Reply With Quote
  #8  
Old July 29th, 2004, 12:21 AM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montrιal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
For some reason I've noticed that my last reply was never submitted!

Basically if it's a conifg file that sets PHP variables you don't need to protect it, really, since simply hitting the config script in a browser won't print out all the configuration variables.

Most of the sites I've written are based on this principle, and big popular apps like phpMyAdmin are also.
__________________
michaelsanford.com • Blog • Twitter • Tumblr • LinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:41 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.