jonasander

Q: Server 5 - website hosting - can't find server

I try to host my own wiki... ok so I've tried everything... no success

So I started with a small default site, just like the one in the tutorial:

 

1) website

2) +

3) myserver.local (rest is default)

4) create

 

5) open safari and go to "my server.local"

 

=> Safari can't find the server

 

Does anybody know where the problem is?

Thanks in advance.

ESXi Server, OS X El Capitan (10.11.2)

Posted on Jan 22, 2016 9:31 AM

Close

Q: Server 5 - website hosting - can't find server

  • All replies
  • Helpful answers

  • by macmartin,

    macmartin macmartin Jan 24, 2016 1:35 PM in response to jonasander
    Level 2 (499 points)
    Jan 24, 2016 1:35 PM in response to jonasander

    Your posting does not contain  very much information.

     

    What happens if you enter localhost in your browsers address field?

  • by jonasander,

    jonasander jonasander Jan 24, 2016 9:11 PM in response to macmartin
    Level 1 (11 points)
    Jan 24, 2016 9:11 PM in response to macmartin

    Hi macmartin and thank you for your reply.

    When I enter localhost or <servername>.local  in Safari, the default server page is loaded. This works.

     

    I've also checked the owner of my new website and it is _www:_www as it should be.

  • by macmartin,

    macmartin macmartin Jan 24, 2016 9:52 PM in response to jonasander
    Level 2 (499 points)
    Jan 24, 2016 9:52 PM in response to jonasander

    Which tutorial are you talking about in your first post?

    Did you restart apache after making changes to your config?

    Did you activate VirtualHosting in your config?

     

    What is the root folder of your website?

     

    What ist the output when you type

         grep DocumentRoot /etc/apache2/httpd.conf

    in Terminal?

     

    What do you need ESXi Server for?

  • by jonasander,

    jonasander jonasander Jan 24, 2016 11:07 PM in response to macmartin
    Level 1 (11 points)
    Jan 24, 2016 11:07 PM in response to macmartin

    *Yes I restarted the apache.

     

    *document root:
    DocumentRoot: The directory out of which you will serve your DocumentRoot "Library/Webserver/Documents"
         #access content that does not live under the DocumentRoot

     

    *I haven't set up any virtual hosts.

     

    ma site is located here:/Library/Server/Web/Data/Sites/

     

    The tutorial I meant is part of the server app. When you press help - server  tutorials, there are some small (way too short) tutorials

     

    thanks macmartin for your reply and your help in advance.

  • by Leopardus,

    Leopardus Leopardus Jan 25, 2016 12:57 AM in response to jonasander
    Level 4 (1,122 points)
    Desktops
    Jan 25, 2016 12:57 AM in response to jonasander

    jonasander wrote:

     

    *Yes I restarted the apache.

     

    *document root:
    DocumentRoot: The directory out of which you will serve your DocumentRoot "Library/Webserver/Documents"
         #access content that does not live under the DocumentRoot

     

    *I haven't set up any virtual hosts.

     

    ma site is located here:/Library/Server/Web/Data/Sites/

     

    The tutorial I meant is part of the server app. When you press help - server  tutorials, there are some small (way too short) tutorials

     

    thanks macmartin for your reply and your help in advance.

    You could watch this tutorial series to set up your basic server. When you have done that, see this discussion and follow the instructions. If you are not sure what to do, ask for further advice.

     

    Leo

  • by macmartin,

    macmartin macmartin Jan 25, 2016 10:25 AM in response to jonasander
    Level 2 (499 points)
    Jan 25, 2016 10:25 AM in response to jonasander

    The line breaks in your posting of the output of the grep command are broken.

    Anyhow, it looks like your content is in "/Library/Server/Web/Data/Sites/" and your server´s DocumentRoot is set to

    "/Library/Webserver/Documents"

    Change your httpd.conf setting DocumentRoot to "/Library/Server/Web/Data/Sites/" or (maybe easier for you to do) put your content to "/Library/Webserver/Documents".

    Make sure that all your content is readable for the _www user and also to restart apache after making any changes.

    You might also need to clear the cache of your web browser.

     

    HTH

    martin