<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Thanks for the below I have been playing around with the config files and it was by acvident that o was on my mobile network and tried www. And cloud. And it works. But not on my home network, is this because my server is on the same ip? No wonder I haven't been able to figure it out</div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent from Galaxy S3 on Three</div></div> <br><br><br>-------- Original message --------<br>From: Turker Sezer <turkersezer@tsdesign.info> <br>Date:  <br>To: linux <linux@sh2515.plus.com> <br>Cc: wylug-help@wylug.org.uk <br>Subject: Re: [Wylug-help] cname and A host <br> <br><br><div style="-webkit-text-size-adjust: auto;"><div><br></div><br>On 19 Kas 2013, at 08:30, linux <<a href="mailto:linux@sh2515.plus.com">linux@sh2515.plus.com</a>> wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><div>Thanks</div><div><br></div><div>Are you any good with apache configuration? I have been trying to get multiple web services running under the same domain name ie owncloud, elgg, gallery3 and such, but I am struggling to get them all running.  I can get https, but I have to manually put it in even with a redirect in the file. If I send the files can you point to the errors for me to amend? I have been searching the web, but I can't find what I am after, perhaps I am not using the appropriate terminology. </div><div><br></div><div>Scott. </div>
</blockquote><br><div><div style="-webkit-text-size-adjust: auto;">You can create virtualhosts to handle subdomains and redirect requests to subfolders of main domain.</div><div style="-webkit-text-size-adjust: auto;"><span class="pun"><</span><span class="tag" style="font-weight: bold;">VirtualHost</span><span class="pln"> </span><span class="pun">*:</span><span class="lit">80</span><span class="pun">></span></div><div style="-webkit-text-size-adjust: auto;"><span class="kwd" style="font-weight: bold;">ServerName</span><span class="pln"> owncloud.</span><span class="pln">example</span><span class="pun">.</span><span class="pln">com</span></div><div style="-webkit-text-size-adjust: auto;"><span class="kwd" style="font-weight: bold;">Redirect</span><span class="pln"> </span><span class="pun">/</span><span class="pln"> https</span><span class="pun">://</span><span class="pln">www</span><span class="pun">.</span><span class="pln">example</span><span class="pun">.</span><span class="pln">com</span><span class="pun">/owncloud/</span></div><div style="-webkit-text-size-adjust: auto;"><span class="pun"></</span><span class="tag" style="font-weight: bold;">VirtualHost</span><span class="pln"> </span><span class="pun">></span></div><div><div style="-webkit-text-size-adjust: auto;"><span class="pun" style="color: rgb(102, 102, 0);"><br></span></div>Or you can add rewrite rules to your default virtualhost.</div><div><span style="background-color: rgba(255, 255, 255, 0);">RewriteEngine On</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">RewriteCond %{HTTP_HOST} ^owncloud\.example\.com$</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">RewriteRule ^/(.*)$ <a href="https://example.com/owncloud/$1">https://example.com/owncloud/$1</a> [R=301,L]</span></div></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">--</span><div style="-webkit-text-size-adjust: auto;">Türker Sezer</div><div style="-webkit-text-size-adjust: auto;"><div style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118); -webkit-composition-fill-color: rgba(175, 192, 227, 0.231373);">TS Design Informatics LTD.</div><div style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118); -webkit-composition-fill-color: rgba(175, 192, 227, 0.231373);"><br></div><div style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118); -webkit-composition-fill-color: rgba(175, 192, 227, 0.231373);"><a href="http://www.tsdesign.info/">http://www.tsdesign.info/</a></div><div style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.294118); -webkit-composition-fill-color: rgba(175, 192, 227, 0.231373);"><br></div></div></div></body>