 |
 |
10.3 Server / Web Admin Probs...
|
 |
|
 |
|
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status:
Offline
|
|
Problem One:
How do you set up Domain Aliases using the Server Admin app? I can't figure it out! Right now I have each web site set up twice, once as domain.com and another as www.domain.com. It gets to be quite a hassle when you have a bunch of site and start setting up a bunch of private realms on each site.
Problem Two:
My server thinks that all my visitors have the same IP. That IP happens to be my servers IP. All emails sent through my contact forms, are from my server's IP. I even made a small page that only tells you your IP, and it tells you MY IP, but all it does is output REMOTE_ADDR. I don't understand this. You can view my code here for the simple page that gives my server's IP instead of your own.
( http://www.whatsmyip.org/50)
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Sep 2002
Location: Sydney, Australia
Status:
Offline
|
|
Problem One...sorry, don't have the answer. i have only the www... sites setup, and that seems to do the correct thing for me. ymmv.
Problem Two...you have the performance cache turned on. somewhere in the web service setup, there is an option for the performance cache. i believe that this runs as a sort of proxy which will cache all of your pages so the real webserver has a smaller load. if you need the actual ips of the external clients to be passed to your server, you have to turn this off. i think that it is set on each domain separately, but i'm not sure (and am at the office and cannot look).
hope this helps.
sam.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status:
Offline
|
|
Performance cache is exactly what I thought at first too. Sounds like thats exactly the problem. But performance cache IS turned off on both the www. and the non www versions of the domain. Unless some how its stuck on, then I just don't get it.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status:
Offline
|
|
OK I sorta solved problem 2. It was the performance cache, but it wasn't on the domain i was using. I had to turn off the performance cache on ALL my domains to get it to shut down completely. That sucks.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status:
Offline
|
|
And my solution to problem 1...
/etc/httpd/sites/
that dir contains all the separate .conf files for each virtual host you set up in the Server Admin.app. I just went in and added a ServerAlias directive to each one I needed to. It is a simple one line addition so it doesn't seem to have upset the Server Admin.app's ability to parse and edit the file. I'm sure theres a real way to do it but this way works fine too.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Sep 2002
Location: Sydney, Australia
Status:
Offline
|
|
hmmm...strange about needing to turn off the performance cache for all the domains. i wonder if a question over at the apple discussions might shed some light on that?
i can't tell about the www... problem, since my server is behind a nat router, everything gets shunted to the correct place no matter what.
good to hear you got it all working, though.
cheers,
sam
|
|
|
| |
|
|
|
 |
 |
|
 |
| |
|
|
|

|
|
 |
Forum 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
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|