-
All replies
-
Helpful answers
-
Jan 24, 2016 1:35 PM in response to jonasanderby macmartin,Your posting does not contain very much information.
What happens if you enter localhost in your browsers address field?
-
Jan 24, 2016 9:11 PM in response to macmartinby jonasander,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.
-
Jan 24, 2016 9:52 PM in response to jonasanderby macmartin,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?
-
Jan 24, 2016 11:07 PM in response to macmartinby jonasander,*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.
-
Jan 25, 2016 12:57 AM in response to jonasanderby Leopardus,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
-
Jan 25, 2016 10:25 AM in response to jonasanderby macmartin,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