57 lines
1.9 KiB
Diff
57 lines
1.9 KiB
Diff
--- src/server/setup/SimiasServerSetup.cs 2007-01-02 01:45:42.000000000 -0700
|
|
+++ src/server/setup/SimiasServerSetup.cs.new 2007-01-03 15:53:29.000000000 -0700
|
|
@@ -901,52 +901,10 @@
|
|
/// </summary>
|
|
void SetupModMono()
|
|
{
|
|
- string path = Path.GetFullPath( "/etc/apache2/conf.d/simias.conf" );
|
|
- Console.Write("Configuring {0}...", path);
|
|
|
|
if ( apache.Value == true )
|
|
{
|
|
- // create configuration
|
|
- using( StreamWriter writer = File.CreateText( path ) )
|
|
- {
|
|
- /* example
|
|
- Include /etc/apache2/conf.d/mod_mono.conf
|
|
-
|
|
- Alias /simias10 "/opt/novell/ifolder3/web"
|
|
- AddMonoApplications simias10 "/simias10:/opt/novell/ifolder3/web"
|
|
- MonoSetEnv SimiasRunAsServer=true;SimiasDataPath="/var/opt/novell/ifolder3/simias"
|
|
- <Location /simias10 >
|
|
- MonoSetServerAlias simias10
|
|
- Order allow,deny
|
|
- Allow from all
|
|
- SetHandler mono
|
|
- </Location>
|
|
- */
|
|
-
|
|
- string alias = "simias10";
|
|
-
|
|
- writer.WriteLine( "Include /etc/apache2/conf.d/mod_mono.conf" );
|
|
- writer.WriteLine();
|
|
- writer.WriteLine("Alias /{0} \"{1}\"", alias, SimiasSetup.webdir);
|
|
- writer.WriteLine("AddMonoApplications {0} \"/{0}:{1}\"", alias, SimiasSetup.webdir);
|
|
- writer.WriteLine("MonoSetEnv {0} \"SimiasRunAsServer=true;SimiasDataDir={1}\"", alias, this.storePath);
|
|
- writer.WriteLine("<Location /{0} >", alias);
|
|
- writer.WriteLine("\tMonoSetServerAlias {0}", alias);
|
|
- writer.WriteLine("\tOrder allow,deny");
|
|
- writer.WriteLine("\tAllow from all");
|
|
- writer.WriteLine("\tSetHandler mono");
|
|
- writer.WriteLine("</Location>");
|
|
- writer.WriteLine();
|
|
- writer.Close();
|
|
- }
|
|
-
|
|
- // chmod
|
|
- if (Execute("chmod", "644 {0}", path) != 0)
|
|
- {
|
|
- throw new Exception(String.Format("Unable to change {0} file permissions.", path));
|
|
- }
|
|
-
|
|
- Console.WriteLine("Done");
|
|
+ Console.WriteLine("Apache/Mono configured");
|
|
}
|
|
else
|
|
{
|