Running webserver...

Originally posted by AppleWatcher
Hey hazmat,

How did you reconfigure the Apache server to another standard folder?

In /etc/httpd/httpd.conf, it's the DocumentRoot directive.
 
No prob. Btw, after you've changed it, you need to restart Apache. Either do it from the System Prefs or from the command line type 'sudo apachectl restart'.
 
Originally posted by AppleWatcher
sorry guys I really feel stupid :(

How do I access that /etc/httpdsomething/-folder?

It's invisible!!!

It's hidden from the Finder. You can access it from the Terminal, or if you want to from the Finder, you need to allow it to see all directories, which is dangerous. I think Tinkertool can do that. Disable it once you are done, though. And be careful. ;)
And make sure if you edit it with something like TextEdit, you save it as plain text!
 
Originally posted by hazmat


You're wrong. ;) DMZ means that the computer you have it pointed to is fully exposed to the Internet. Unless you need that, leave it closed. For a home machine, you should only need open what has to be. I have ports 21, 22, 25, and 80. That's it.

hazmat,

Thanks, I'll have to look into that... I must have a wierd thing going on with my router... 'cause I am almost 100% sure my router wouldn't pass traffic to any machine on the LAN without it having DMZ hosting turned on.

Nice to know that for furture questions... thanks again! ;)
 
O NO

I changed the DocumentRoot-thingie into

'Users/thisisme/Sites'

and now if I goto my page, I see the page I put there first (Mac OS X index.html in Sites-folders), and if I type the URL with another slash, I get the page I need (because it's placed into the Sites folder).

so, if you type http://212.45.47.218// you get a page with TEST, if you type http://212.45.47.218, you get the Mac OS X index.html... :(

What is my mistake?

AppleWatcher
 
Originally posted by evildan


hazmat,

Thanks, I'll have to look into that... I must have a wierd thing going on with my router... 'cause I am almost 100% sure my router wouldn't pass traffic to any machine on the LAN without it having DMZ hosting turned on.

Nice to know that for furture questions... thanks again! ;)

Cool, no prob. What router do you have? I have an SMC Barricade and love it. I know that Linksys seems to be the most popular, but I would buy another SMC in a second. And I've set up a few Linksys' as well.
 
AppleWatcher, that's really weird. For one thing, though, you need a slash in front of the path, so it's '/Users', not 'Users'. Make sure that is there before you try anything else.
 
Fresh from httpd.conf:

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Users/vdschuur/Sites"

#

Have you seen the TEST-page?

AppleWatcher
 
Originally posted by AppleWatcher
Have you seen the TEST-page?

Just did. I get TEST with or without slashes. Any number of slashes. I think your router is playing tricks on you. ;)
 
Yes, because you said (or somebody else?? :D) that

212.45.47.218/~vdschuur/ is the folder Sites (with index.html), isn't it??

AppleWatcher
 
Yes, but I thought you wanted it so the root of the site, as in http://212.45.47.218/ went to your Sites directory, not /Library/WebSites/Documents. Check out
http://e-this.net:8080 . That goes to my Mac, and the root is under the Sites directory of my home directory. Same thing in the end, but it's how you want to deal with the URL. I have it going directly, you have a redirect. I also hate the /~username, especially if it's on my own system. Whatever floats your boat.
 
Apple watcher. You might want to take a look at a series of articles on the O'Reilly web site. They have a good series of articles on configuring the Apache server. This will at least clear up any confusion that you have over the none router aspects of the set up.

Configuring Apache

DC
 
Back
Top