Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Feb 06, 2011 10:35 am 
Offline
Senior Member

Joined: Tue Feb 01, 2011 5:14 pm
Posts: 53
Hi,

I now have my server configured and I am writing a script to make it easy to add new sites as I need them without too much fuss..

I am looking for suggestion as to what I should include in the default setup to make it safe and secure but obviously functional as well.. :)

Below is what I would generate so far for all new sites.. If you have any recommendations please fire away and explain why what you are suggesting is a good idea..

Thanks..

Code:

<VirtualHost *:80>
        ServerAdmin webmaster@domain.com
        ServerName www.domain.com
        ServerAlias alias.domain.com
        DocumentRoot /home/www.domain.com/public_html/
        ErrorLog /home/www.domain.com/logs/error.log
        CustomLog /home/www.domain.com/logs/access.log combined

        <Directory /home/www.domain.com/public_html>
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        <IfModule mpm_itk_module>
                AssignUserId www.domain.com www.domain.com
        </IfModule>
</VirtualHost>


Top
   
 Post subject: Looks good to me!
PostPosted: Thu Feb 10, 2011 12:18 pm 
Offline
Junior Member

Joined: Wed Jan 05, 2011 7:55 am
Posts: 29
Website: http://www.zeropointproductions.co.uk
Location: UK
dunno if you would need or can put this;

Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . /index.php [L]
</IfModule>


in there as I have placed the above in a different file. (.htaccess)
Would mean that you could have the nice urls by default.

I really do not know if that would work in that way though.


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


Who is online

Users browsing this forum: No registered users and 0 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