Dean

Q: Why does Web site disappear when wiki server enable

I'm using Lion Server 10.7.5 my host name is test.local.  When I enable WebServer I can go to test.local web site using my browser, but when I also enable the Wiki Server and I go to test.local I now get the Wiki. I cannot reach both when both the web server an the wiki server are on.. Why is that?  Can you setup the server so you can reach both? A website and the wiki.

Mac mini, Mac OS X (10.7.3)

Posted on Apr 13, 2013 2:58 PM

Close

Q: Why does Web site disappear when wiki server enable

  • All replies
  • Helpful answers

  • by Kevin Neal,

    Kevin Neal Kevin Neal Apr 14, 2013 1:35 PM in response to Dean
    Level 3 (513 points)
    Servers Enterprise
    Apr 14, 2013 1:35 PM in response to Dean

    you cant get to two different sites using the same name ( if they are also using the same port number)

     

    You need to make a new site with a new name. If you look at the default server website, the index file is set to go to /wiki/ before it will go to default.html

  • by Dean,

    Dean Dean Apr 14, 2013 6:38 PM in response to Kevin Neal
    Level 1 (5 points)
    Apr 14, 2013 6:38 PM in response to Kevin Neal

    Thank you Kevin,

    where is that index file located? I looked into /library/Server/Web/Data/Sites/Default but I don't see an index file there.

  • by Kevin Neal,

    Kevin Neal Kevin Neal Apr 15, 2013 12:08 AM in response to Dean
    Level 3 (513 points)
    Servers Enterprise
    Apr 15, 2013 12:08 AM in response to Dean

    If you open Server.app and look at the website section, double click on the server website.

    At the bottom it should save Index files, if you click on edit you'll see the order that it looks for a file to open.

     

    Because /wiki/ is higher up in the list then it switches to the wiki website if that is active.

     

    You can change the order by pushing /wiki/ to the bottom of the list, then the default server website should display when you visit the server website.

     

    In order to be able to access both you need 2 websites set up.

     

    Or you could set the secure website (ssl) to be the wiki and the server website could be the default.html

     

    then visiting http://test.local. would be the standard website and https://test.local. would be the wiki

  • by Dean,

    Dean Dean Apr 15, 2013 5:58 AM in response to Kevin Neal
    Level 1 (5 points)
    Apr 15, 2013 5:58 AM in response to Kevin Neal

    Hmmm, test.local is the only website listed on the server. When I go to edit the test.local profile the profile opens but all the fields are grayed out. Including the    Index Files:  edit button. That does not change whether the Web Server is turned on or off.

  • by G Robert Lewis,

    G Robert Lewis G Robert Lewis Oct 28, 2015 3:02 PM in response to Kevin Neal
    Level 2 (226 points)
    Oct 28, 2015 3:02 PM in response to Kevin Neal

    I tried setting up a new website with the same domain name but a different port. But I can't find anyplace in the wiki settings that allows me to attach the wiki to the site on that port.

     

    I expect I'll have the same issue if I try to enable Xcode services.

     

    This is with just-installed El Capitan server (upgraded from Mavericks, which never had wiki or Xcode turned on).

  • by Leopardus,

    Leopardus Leopardus Oct 28, 2015 9:21 PM in response to G Robert Lewis
    Level 4 (1,122 points)
    Desktops
    Oct 28, 2015 9:21 PM in response to G Robert Lewis

    Just rename the file /Library/Server//Web/Config/apache2/other/com.apple.webapp.wiki.conf to ....../com.apple.webapp.conf_old and it would not disappear.

    Your website, wiki etc should all work

     

    Leo

  • by Leopardus,

    Leopardus Leopardus Oct 30, 2015 5:34 AM in response to Dean
    Level 4 (1,122 points)
    Desktops
    Oct 30, 2015 5:34 AM in response to Dean

    Have you solved your problem? Tried my suggestion?

  • by G Robert Lewis,

    G Robert Lewis G Robert Lewis Oct 30, 2015 11:59 AM in response to Leopardus
    Level 2 (226 points)
    Oct 30, 2015 11:59 AM in response to Leopardus

    Thanks. But there was no file ..com.apple.webapp.wiki.conf in there (I had turned the wiki off in Server).

     

    I turned the wiki back on, and three new files appeared in the "other" folder:

    COM.APPLE.WEBAPP.AUTH.conf

    COM.APPLE.WEBAPP.COLLABD.conf

    COM.APPLE.WEBAPP.WIKI.conf

     

    I can access the wiki if I type my server's IP address (either local or WAN) followed by "/wiki". But if I type my normal website name (e.g. www.mydomain.net), the server sends it to the site configured for that name.

     

    How can I make the wiki and Xcode servers appear at:

    www.mydomain.net/wiki and

    www.mydomain.net/xcode ?

  • by Leopardus,

    Leopardus Leopardus Oct 30, 2015 3:28 PM in response to G Robert Lewis
    Level 4 (1,122 points)
    Desktops
    Oct 30, 2015 3:28 PM in response to G Robert Lewis

    G Robert Lewis wrote:

     

    Thanks. But there was no file ..com.apple.webapp.wiki.conf in there (I had turned the wiki off in Server).

     

    I turned the wiki back on, and three new files appeared in the "other" folder:

    COM.APPLE.WEBAPP.AUTH.conf

    COM.APPLE.WEBAPP.COLLABD.conf

    COM.APPLE.WEBAPP.WIKI.CONF

     

    I can access the wiki if I type my server's IP address (either local or WAN) followed by "/wiki". But if I type my normal website name (e.g. www.mydomain.net), the server sends it to the site configured for that name.

     

    How can I make the wiki and Xcode servers appear at:

    www.mydomain.net/wiki and

    www.mydomain.net/xcode ?

    Keep wiki turned on. That is the config file which need to be changed to .......com.apple.webapp.wiki.config.old

     

    Your other stuff should now work, if the order is correct as mentioned above.

     

    Leo