Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

OS X Server Websites - How can i make mydomain.com, www.mydomain.com to go directly to http://www.mydomain.com/wiki/projects

I have wikis setup correctly. I want visitors that come to mydomain.com and www.mydomain.com to see http://www.mydomain.com/wiki/projects directly.

How can i do that?

share|improve this question
add comment

3 Answers 3

up vote 1 down vote accepted

In the server app. Go to the websites menu and under the "Server Website" click the pen icon to edit. The add a redirect of "http://www.my-domain.com" and/or "http://my-domain.com" to "http://my-domain.com/wiki/projects"

Done.

share|improve this answer
add comment

You can do this either on the server side or on the DNS side.

On the server you can redirect from your base index.html web page to the wiki.

On the DNS side you can probably set this up with your registrar to do the redirect. My registrar has a configuration page where I can set this up. I know it works for ports, but I'm not absolutely sure about paths on your domain.

I think that doing is locally is probably the better solution. That way if you switch registrars you have less work to do and one less thing to break.

share|improve this answer
add comment

With the normal apache server, there's a file at /etc/apache2/extra/httpd-vhosts.conf that lets you match server names to document directories. With virtual hosts enabled you can change the root directory or create subdomains as you like.

share|improve this answer
    
Wiki Server 4 in OS X Server is an app written in ruby on rails i believe. The path mydomain.com/wiki/projects actually links to a certain place in that app. –  unmircea Nov 20 '12 at 9:14
    
Whether my answer would work or not depends on how the app gets its requests. The vhosts strategy would be fine for something that's installed as a web app with apache as the front end but not for something that controls its own server port numbers. –  Phillip Mills Nov 20 '12 at 12:09
    
How can i find out which is the case on Wiki Server 4 on OS X Server? –  unmircea Dec 2 '12 at 13:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.