Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > 10.3 Server / Web Admin Probs...

 
10.3 Server / Web Admin Probs...
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Jun 21, 2004, 05:49 AM
 
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
Jun 21, 2004, 09:00 PM
 
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.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Jun 21, 2004, 09:32 PM
 
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.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Jun 22, 2004, 01:35 AM
 
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.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Jun 22, 2004, 05:39 AM
 
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
Jun 23, 2004, 09:28 PM
 
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
     
 
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:30 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2