Thread
Mac as a web host server
Quote:
|
Originally Posted by hhlee
not to rain on your parade but if it were up to me, i wouldn't use the mac as a server:
http://www.anandtech.com/mac/showdoc.aspx?i=2436&p=8 the mac is quite slow in mysql and php services - choose to use linux instead or heaven forbid, windo......z |
Oh, please. That test is very questionable (is it testing OS X or the G5 chip or something else entirely?), and the Mac is still fast enough for most Web sites even if you take that page as scripture. Even if OS X and the G5 are both completely horrible compared to Linux and x86, you will most likely not run into a situation where it matters.
Quote:
|
Originally Posted by Chuckit
Oh, please. That test is very questionable (is it testing OS X or the G5 chip or something else entirely?), and the Mac is still fast enough for most Web sites even if you take that page as scripture. Even if OS X and the G5 are both completely horrible compared to Linux and x86, you will most likely not run into a situation where it matters.
|
this is entirely true. just thought i'd point it out - i guess if you decide to buy a rackmount server, you should choose something other than the xserve
Quote:
|
Originally Posted by hhlee
this is entirely true. just thought i'd point it out - i guess if you decide to buy a rackmount server, you should choose something other than the xserve
![]() |
This is getting somewhat off topic from the original post, but an Xserve may still be a great choice for a rack-mounted server. It just depends on what your needs are.
Some people say I should get a Windows PC because I can play more games, or some other reason, but I like the Mac as it does what I need and does it well. An Xserve has very nice UI and a complete set of tools at a relatively low price. If that fits your needs, then that's fine.
i fried the hard drive.
seriously. it blows.
i was in the middle of unplugging the drive from the tower and, i have no idea how, but the wires came out of the power plug. while i was installing some things on the drive using a firewire case, i put the wires back in the plug. plugged in the drive and nothing. put it back in the fw case and nothing. looked to the wires, and had switched the 2 black ones.
oops. oh well, it was only a 10 gig 5400......
new 160 gig 7200 will be here in the morning.
and hhlee, dont piss on my parade......it's been quite the week with this thing.
yeah i know there are better out there, but i just want something simple.
seriously. it blows.
i was in the middle of unplugging the drive from the tower and, i have no idea how, but the wires came out of the power plug. while i was installing some things on the drive using a firewire case, i put the wires back in the plug. plugged in the drive and nothing. put it back in the fw case and nothing. looked to the wires, and had switched the 2 black ones.
oops. oh well, it was only a 10 gig 5400......new 160 gig 7200 will be here in the morning.
and hhlee, dont piss on my parade......it's been quite the week with this thing.
yeah i know there are better out there, but i just want something simple.
Don't worry I still can't get mine to work. Its almost like the Linksys isn't forwarding or something, but I don't know. I have no real knowledge of how to test it.
so .......
i got my new drive in and server set up, got the port forwarding done on the router and no go. then i find out cablevison has blocked port 80. so i go back in and change everything to 81.
opened 81 on osx firewall and on router.
my dns is http://67.85.182.81:81 (the :81 does specify port 81, no?)
virtual host config file has a listen_81
<VirtualHost _default_:81>
SeverName www.joshazzarella.com
DocumentRoot /Library/WebServer/Documents/josh
ServerAlias joshazzarella.com
</VirtualHost>
before i got a not able to connect message, now i get a 502, which i guess is a start.
more specifically:
Bad Gateway
The proxy server received an invalid response from an upstream server.
Apache/2.0.52 (Gentoo/Linux) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/4.3.10 Server at domains.omnis.com Port 80
any suggestions on how to fix this? all i can find are explanations, no solutions
-j
i got my new drive in and server set up, got the port forwarding done on the router and no go. then i find out cablevison has blocked port 80. so i go back in and change everything to 81.
opened 81 on osx firewall and on router.
my dns is http://67.85.182.81:81 (the :81 does specify port 81, no?)
virtual host config file has a listen_81
<VirtualHost _default_:81>
SeverName www.joshazzarella.com
DocumentRoot /Library/WebServer/Documents/josh
ServerAlias joshazzarella.com
</VirtualHost>
before i got a not able to connect message, now i get a 502, which i guess is a start.
more specifically:
Bad Gateway
The proxy server received an invalid response from an upstream server.
Apache/2.0.52 (Gentoo/Linux) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/4.3.10 Server at domains.omnis.com Port 80
any suggestions on how to fix this? all i can find are explanations, no solutions
-j
so it looks like i got it to show up in the outside world (which is good), but i can get the name hosting right.
joshazzarella.com and tiffanycalvert.com both point to the same doc folder. but the virtual servers both have the correct paths in them. hmm.....
joshazzarella.com and tiffanycalvert.com both point to the same doc folder. but the virtual servers both have the correct paths in them. hmm.....
Did you do the NameVirtualHost directive?
heres my current set up via config:
Edit: gone
i cant find anytihng wrong....
i have even switched from servername to serveralias and nothiung really changes.
suggestions?
thanks,
-j
Edit: gone
i cant find anytihng wrong....
i have even switched from servername to serveralias and nothiung really changes.
suggestions?
thanks,
-j
yeah, i've used listen, namevirtualhost......and any combination ot the 2.
i dont think dns is the issue and both addresses are arriving as told to do. the problem is with apache not recognizing the names.
which ever one is on top in the virtual server list, is displayed for both addresses. i have gone over and over the apache documentation, and see where it talks about the 1st serving as default if things dont match.
but everything is the same in my virtual set ups except for the servernames and documentroot.
i did get it working locally yesterday, and copied the set up via the config file. when i tried to move to port 81 things got screwy again, so i copied my original config set up that was working, and it wouldn’t work.
i am beginning to think it's like dreamweaver or golive----even if you delete something, it still may (or probably) leaves a bit of code behind which just f's things up down the road. so again today, i did another fresh instal of panther, that makes #...........9 in about 13 days.awesome.
but hey.....at least i'm learning a lot.
i dont think dns is the issue and both addresses are arriving as told to do. the problem is with apache not recognizing the names.
which ever one is on top in the virtual server list, is displayed for both addresses. i have gone over and over the apache documentation, and see where it talks about the 1st serving as default if things dont match.
but everything is the same in my virtual set ups except for the servernames and documentroot.
i did get it working locally yesterday, and copied the set up via the config file. when i tried to move to port 81 things got screwy again, so i copied my original config set up that was working, and it wouldn’t work.
i am beginning to think it's like dreamweaver or golive----even if you delete something, it still may (or probably) leaves a bit of code behind which just f's things up down the road. so again today, i did another fresh instal of panther, that makes #...........9 in about 13 days.awesome.
but hey.....at least i'm learning a lot.
Well, I'm sure you don't need to reinstall Panther. You are reloading the Apache config file after making changes, yes? (Stopping and starting Personal Web Sharing from the Sharing Preference pane is the easy way).
Jersey--post your /etc/httpd/httpd.conf file and Ill check it out....
ppmax,
Thanks, this is all i have left as i have done a reinstall, for my own sanity if nothing else.
Listen 81
NameVirtualHost
<VirtualHost 192.168.0.101:*>
DocumentRoot /Library/WebServer/Documents/tiff
ServerName www.tiffanycalvert.com
<Directory "/Library/WebServer/Documents/tiff"
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.101:*>
DocumentRoot /Library/WebServer/Documents/josh
ServerName www.joshazzarella.com
<Directory "/Library/WebServer/Documents/josh"
allow from all
Options +Indexes
</Directory>
</VirtualHost>
Tonight I changed the dns on my domain to use proxy www and @ addressees to point at:
http:// 67.**.***.**/~josh:81
http:// 67.**.***.**/~tiff:81
just to see if i can get the thing to run off user accounts, but I'm not sure if this will work, if you have any thoughts on this, that would be great.
Thanks, this is all i have left as i have done a reinstall, for my own sanity if nothing else.
Listen 81
NameVirtualHost
<VirtualHost 192.168.0.101:*>
DocumentRoot /Library/WebServer/Documents/tiff
ServerName www.tiffanycalvert.com
<Directory "/Library/WebServer/Documents/tiff"
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.101:*>
DocumentRoot /Library/WebServer/Documents/josh
ServerName www.joshazzarella.com
<Directory "/Library/WebServer/Documents/josh"
allow from all
Options +Indexes
</Directory>
</VirtualHost>
Tonight I changed the dns on my domain to use proxy www and @ addressees to point at:
http:// 67.**.***.**/~josh:81
http:// 67.**.***.**/~tiff:81
just to see if i can get the thing to run off user accounts, but I'm not sure if this will work, if you have any thoughts on this, that would be great.
Questions:
Are you restarting Apache after every change you make to the httpd.conf file?
Are you sure port 80 is blocked by your ISP?
Have you checked the syntax of you httpd.conf file? After you edit the file drop to the terminal and run:
sudo apachectl configtest
Anyways, looks like you've got some errors in your httpd.conf file. Try this:
Let me know how it works.
Are you restarting Apache after every change you make to the httpd.conf file?
Are you sure port 80 is blocked by your ISP?
Have you checked the syntax of you httpd.conf file? After you edit the file drop to the terminal and run:
sudo apachectl configtest
Anyways, looks like you've got some errors in your httpd.conf file. Try this:
code:
NameVirtualHost *
Listen 81
<VirtualHost *:81>
DocumentRoot /Library/WebServer/Documents/tiff
ServerName www.tiffanycalvert.com
<Directory "/Library/WebServer/Documents/tiff"
allow from all
Options +Indexes
</Directory>
</VirtualHost>
<VirtualHost *:81>
DocumentRoot /Library/WebServer/Documents/josh
ServerName www.joshazzarella.com
<Directory "/Library/WebServer/Documents/josh"
allow from all
Options +Indexes
</Directory>
</VirtualHost>
Let me know how it works.
ppmax,
I am on cablevision, they block 25 and 80.
Copied and pasted the syntax you posted, ran config test (it wanted ">" on the directory, no big deal) restarted, which I have been doing.
But still the problem persists. Not sure which way to go............ do you want the entire httpd.config file
-j
I am on cablevision, they block 25 and 80.
Copied and pasted the syntax you posted, ran config test (it wanted ">" on the directory, no big deal) restarted, which I have been doing.
But still the problem persists. Not sure which way to go............ do you want the entire httpd.config file
-j
I just checked tiffanycalvert.com and joshazzarella.com and they work...so what's the problem?
The only thing I see is that both domains point to the same content.
The only thing I see is that both domains point to the same content.
Quote:
|
Originally Posted by ppmax
I just checked tiffanycalvert.com and joshazzarella.com and they work...so what's the problem?
The only thing I see is that both domains point to the same content. |
exactly....i can get them both to work, but they both show the same content, thats the issue. the top server continues to take precedence...however the documentroot is correct on both.
/Users/josh/Sites
/Users/tiff/Sites
but /Users/josh/Sites shows for both domains.
suggestions?
Quote:
|
Originally Posted by jersey
exactly....i can get them both to work, but they both show the same content, thats the issue. the top server continues to take precedence...however the documentroot is correct on both.
/Users/josh/Sites /Users/tiff/Sites but /Users/josh/Sites shows for both domains. suggestions? |
In your config, your putting the content at /Library/WebServer/Documents/tiff, yet above you say it's at /Users/tiff/Sites. Which is it? And Josh is showing as the content, which is the bottom site, not the top site listed in the config. Just trying to nail down the exact issue...
Whats posted above is not my current config file...
I noticed that too, so I made sure both documentroot and directory match.
However I have noticed that the default server seemingly can not be from changed "/Library/WebServer/Documents".
I have to teach here in a few minutes(dont worry,photoshop not apache or anything like it),
and I'll post my config file tonight after I get home. That 10:30 here in the east
I noticed that too, so I made sure both documentroot and directory match.
However I have noticed that the default server seemingly can not be from changed "/Library/WebServer/Documents".
I have to teach here in a few minutes(dont worry,photoshop not apache or anything like it),
and I'll post my config file tonight after I get home. That 10:30 here in the east