Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

goncaloproenca

macrumors newbie
Original poster
Aug 16, 2008
8
0
Lion Server is driving me nuts.


I'm honestly few hours away from see if time machine works nicely and restore Snow Leopard Server and get everything back as it was.



First and major grip : multiple domains.


Second : php and apache extensions.



Before everything was easy, I can configure everything , multiple domains, with aliases, etc etc. Now everything gets pointed to ONE domain and I cannot even see the wildcards ( * ) . So as I have several domains pointing to my webserver, he simple ignore them and puts up the default page.



Oh and PHP : not working. So I tried to change to root directory but dont have PHP parsing. Extensions ? None.



They made everything simplistic. Fine for a road user. Very bad for a server.



I downloaded the optional server tools and got my workgroup manager back and my server admin but in the server admin, I cannot add the web service ( presumebly because its in the server app already ) so I cannot configure any aliases / virtual hosts / extensions



Do I have to edit apache files manual ? off with the GUI ? what was wrong with the old one ?



Please help, got a 12.000 hits / per hour site down at the moment and cannot get it back up.




Oh and dont get me started on the removal of MySQL... I feel REALLY dumb and cheated : well guess that is what happens when you think it would be nice to upgrade a 400 euros server edition for a 40 euros server one....
 

wingnut1979

macrumors newbie
Jul 21, 2011
14
0
im right there with both of you two as well - 2 domains pointing at it... and the damn thing will only display 1 page no matter what. i ended up having to revert back to snow leopard for the time being until i can get it figured out.
just finished setting up a test machine to screw with in an attempt to figure out wtf is going on
 

wingnut1979

macrumors newbie
Jul 21, 2011
14
0
Ok i got a fix! If you simply edit the httpd.conf file ( /etc/apache2/httpd.conf ) and add the line:
NameVirtualHost *:80
then restart the web service - it will then recognize the separate domains going to the server and direct them accordingly to where they need to go :)
 

InfiniteLoop

macrumors member
Nov 13, 2005
55
0
I have been having trouble with vhosts set up also. I need to have 3 hosts on my new Mac Mini each on a different port. So far no luck getting it to work. Are you guys using such a set up where you are using different ports for the virtual hosts? And did you comment out the line in apache2 conf file that "includes" the user set up that points to <username>/Sites? I will try adding NameVirtualHost line to apache 2 conf, the same line exists in vhosts file in extras folder, did you remove it from there? How would that interact with my hosts on different ports since this line only refers to the default port 80?

Darn it, give me the apache2 set up on Linux anyday. May be I will look at installing a different version of apache on my mac if I do not get anywhere with this.

Ok i got a fix! If you simply edit the httpd.conf file ( /etc/apache2/httpd.conf ) and add the line:
NameVirtualHost *:80
then restart the web service - it will then recognize the separate domains going to the server and direct them accordingly to where they need to go :)
 

InfiniteLoop

macrumors member
Nov 13, 2005
55
0
OK, I can answer one of my questions, there is no need to comment out the line that includes the user dir defintion, all it does it allow apache2 serve files from username/Sites/... folder.

Now with the line NameVirtualHost added to my apache2 conf file I am able to host from one of the virtual host. I now need to figure out how I get apache2 to listen on the other two ports. The cont file only has "listen 80" I do not see where I need to add the others yet, may be I can just add them to the same place, will experiment.
 

InfiniteLoop

macrumors member
Nov 13, 2005
55
0
Added two more "listen <port>" directives and added two more NameVirtualHost in vhost file and I am all up and running! I am running this on a new standard Mac Mini, not the server version.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.