Skip to content

Sysadmin grodoudou sitemap robots.txt 20 07 2012

yannouk edited this page Jul 20, 2012 · 2 revisions

Session

  • user : root
  • host : grodoudou.seizam.com
  • date : 20/07/12 13:02
  • curpath : /home/yannouk

Commands

  • setup sitemap
 [email protected]# mkdir /var/wikizam/sitemap
 [email protected]# chmod 750 /var/wikizam/sitemap/
 [email protected]# chgrp www-data /var/wikizam/sitemap/
 [email protected]# cd /var/wikizam/deployed
 [email protected]# php maintenance/generateSitemap.php --fspath /var/wikizam/sitemap --urlpath http://www.seizam.com/sitemap --server http://www.seizam.com --identifier seizam
  • Edit /etc/apache2/sites-enabled/010-seizam.com, see [1]
 [email protected]# /etc/init.d/apache2 reload
  • now just deploy robots.txt under /var/wikizam

Files

  • [1] Edit /etc/apache2/sites-enabled/010-seizam.com
--- old	2012-07-20 13:08:23.000000000 +0000
+++ new	2012-07-20 13:26:44.000000000 +0000
@@ -29,4 +29,11 @@
 
+        <Directory /var/wikizam/sitemap>
+                Options Indexes MultiViews
+                AllowOverride None
+                Order allow,deny
+                allow from all
+        </directory>
+
 	<Directory /var/public-files>
-                Options Indexes FollowSymLinks MultiViews
+                Options Indexes MultiViews
                 AllowOverride None

@@ -63,4 +63,5 @@
                 Alias /skins		/var/wikizam/deployed/skins
-                Alias /robots.txt	/var/wikizam/deployed/robots.txt
-                ScriptAlias /img_auth.php	/var/wikizam/deployed/img_auth.php/
+                Alias /robots.txt	/var/wikizam/robots.txt
+                Alias /sitemap		/var/wikizam/sitemap
+		ScriptAlias /img_auth.php	/var/wikizam/deployed/img_auth.php/
                 ScriptAlias /load.php		/var/wikizam/deployed/load.php/
Clone this wiki locally