Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Aug 09, 2014 3:38 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
Ok, Got it working :)

Turns out I was doing things well enough, but I had some config problems in apache2. Things that I'd removed, but didn't remove enough of from apache, causing it to fail to restart properly.

Also this works.
Now future noobs know how to subdomain lol

Quote:
<VirtualHost *:80>
ServerName minecraft.nonetforyou.com
ServerAdmin admin@nonetforyou.com

DocumentRoot /home/methlon/public/nonetforyou.com/public/minecraft
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/methlon/public/nonetforyou.com/public/minecraft>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

LogLevel warn

ErrorLog /blah
CustomLog /blah
</VirtualHost>


All better now.
Thanks for everything, guys!


Top
   
PostPosted: Sat Aug 09, 2014 11:29 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
So it seems, until it breaks again, we need to be editing the httpd.conf for subs.

So far so good.

Here you go internet.
Redirect permanent fixes it so that everything not defined as a sub domain takes you to (In this case) your root.
So use that, and substitute the rest (while doing the sites-available a2ensite stuff) and defining your A name.
Shud werk.

This is what the httpd.conf thingey will sorta look like.

Quote:
ServerName localhost

<VirtualHost *:80>
ServerName sub.domain.lol
DocumentRoot /home/herp/derp/
</VirtualHost>

<VirtualHost *:80>
ServerName http://www.domain.com
ServerAlias *.domain.com
Redirect permanent / http://domain.com
</VirtualHost>


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group