mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-16 00:21:50 +00:00
Remove assertion for defined GNUSTEP_STRING_ENCODING. * GSWeb.framework/GSWDefaultAdaptorThread.m ([+sendResponse:toStream: withNamingConv:withAdditionalHeaderLines:withRemoteAddress:]): Use contentEncoding of response instead of NSISOLatin1StringEncoding. * GSWeb.framework/GSWHTMLComment.m ([-init]): Use +[GSWMessage defaultEncoding] instead of NSISOLatin1StringEncoding. * GSWeb.framework/GSWHTMLDynamicElement.m ([-addURL:forCIDKeyAssociation:CIDStoreAssociation:inContext:]): Use NSUnicodeStringEncoding instead NSISOLatin1StringEncoding for hash value. * GSWeb.framework/GSWMessage.m ([+initialize]): Set globalDefaultEncoding to NSISOLatin1StringEncoding only if WOStrictFlag default flag is set. Otherwise default to GetDefEncoding(). * GSWeb.framework/GSWRequest.m ([-_formValueEncodingFromFormData:]): Use +[GSWMessage defaultEncoding] instead of NSISOLatin1StringEncoding. ([-_formData], [-_getFormValuesFromMultipartFormDataOld]): Ditto. ([-_getFormValuesFromMultipartFormData]): Ditto. ([-_decodeMultipartBody:boundary:], -[_parseData:]): Ditto. * GSWeb.framework/GSWTemplateParserXML.m ([-templateElements]): Ditto. * GSWeb.framework/NSString+HTML.m (-[decodeURL]): Ditto. * INSTALL: Remove reference to GNUSTEP_STRING_ENCODING. * Examples/hello/HelloPage.gswc/HelloPage.gswi, * GSWExtensions.framework/French.lproj/ GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.gswi, GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.gswi * GSWExtensions.framework/ GSWCollapsibleComponentContent.gswc/GSWCollapsibleComponentContent.gswi GSWDictionaryRepetition.gswc/GSWDictionaryRepetition.gswi, GSWIFrame.gswc/GSWIFrame.gswi, GSWMetaRefresh.gswc/GSWMetaRefresh.gswi, GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.gswi, GSWRedirect.gswc/GSWRedirect.gswi, GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.gswi, GSWSessionRestorationErrorPage.gswc/GSWSessionRestorationErrorPage.gswi GSWStatsPage.gswc/GSWStatsPage.gswi, GSWTable.gswc/GSWTable.gswi, GSWTableString.gswc/GSWTableString.gswi, Correct encoding declaration. * GSWExtensions.framework/ GSWKeyValueConditional.gswc/GSWKeyValueConditional.gswd, GSWKeyValueConditional.gswc/GSWKeyValueConditional.gswi, GSWKeyValueConditional.gswc/GSWKeyValueConditional.html: Correct encoding declaration and line terminators. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20347 72102866-910b-0410-8b05-ffd578937521
140 lines
3.7 KiB
Text
140 lines
3.7 KiB
Text
Installation
|
|
************
|
|
|
|
This file documents the installation of GNUstepWeb, `gsweb'. Copyright
|
|
(C) 1999-2004 Free Software Foundation, Inc. You may copy, distribute, and
|
|
modify it freely as long as you preserve this copyright notice and
|
|
permission notice.
|
|
|
|
This is version 1.1.0 of GNUstepWeb.
|
|
|
|
This package contains GNUstepWeb library. You need to install
|
|
GNUstep core, extensions and db libraries, GSWAdaptor and Apache
|
|
Please download last up to date cvs version of GNUstep (some bugs
|
|
have been corrected).
|
|
|
|
Remark: We suppose that the GNUstep folder is on /usr/GNUstep, please
|
|
check all the paths below with your configuration
|
|
|
|
Installing `gsweb'
|
|
====================
|
|
|
|
Libraries requiered :
|
|
---------------------
|
|
|
|
core/ GNUstep core
|
|
gdl2/ GNUstep Database Library 2
|
|
(or db/ alternative GNUstep Database Library)
|
|
|
|
The GNUStepWeb package:
|
|
-----------------------
|
|
* GNUstepWeb/ --> GNUstepWeb Root
|
|
* GNUstepWeb/GSWeb.framework --> GNUstepWeb Main Part
|
|
* GNUstepWeb/GSWExtensions.framework --> GNUstepWeb 'standard' Extensions
|
|
* GNUstepWeb/GSWExtensionsGSW.framework --> GNUstepWeb Extensions
|
|
|
|
|
|
|
|
Compilation Order:
|
|
------------------
|
|
|
|
1) core
|
|
|
|
2) gdl2
|
|
|
|
3) GNUstepWeb
|
|
Go in the gsweb folder. make and make install.
|
|
|
|
4) Apaches modules for GNUstepWeb
|
|
Still in the gsweb folder there is a GSWAdaptors/Apache folder.
|
|
Change to that directory. 'su' to root and make. There's no make
|
|
install. Instead you must copy the mod_gsweb.so module in you
|
|
Apache libexec directory (something like /usr/apache/libexec).
|
|
|
|
At this point everything is done, still remains the Apache configuration:
|
|
|
|
If you do not want the extensions you can compile with
|
|
ADDITIONAL_OBJCFLAGS += -DNOEXTENSIONS
|
|
in config.mak
|
|
|
|
Configurating Apache:
|
|
=====================
|
|
|
|
In Apache httpd.conf file, add thoses lines:
|
|
|
|
LoadModule GSWeb_Module libexec/mod_gsweb.so
|
|
AddModule mod_gsweb.c
|
|
|
|
And this one to specify the configuration file
|
|
(for exemple /etc/httpd/conf/gsweb.conf)
|
|
|
|
GSWeb_ConfigFilePath /etc/httpd/conf/gsweb.conf
|
|
|
|
|
|
If you use virtual hosts (Apache in localhost does not requiered them),
|
|
add the following lines:
|
|
|
|
<Location /GSWeb*>
|
|
SetHandler GSWeb
|
|
</Location>
|
|
|
|
Then, create the file configuration file
|
|
(for exemple /etc/httpd/conf/gsweb.conf)
|
|
which contains parameters for GNUstepWeb Applications:
|
|
|
|
The format is(there is an example for values below):
|
|
|
|
{
|
|
canDumpStatus = YES;
|
|
//YES if server can display status (URL: /GSWeb/status)
|
|
|
|
GSWExtensionsFrameworkWebServerResources =
|
|
"/GSW/GSWExtensions/WebServerResources";
|
|
//URL of GSWExtensions Framework WebServerResources directory
|
|
|
|
applications = {
|
|
ApplicationName = {
|
|
//URL of GSWExtensions Framework WebServerResources directory.
|
|
//It overides Global parameter
|
|
GSWExtensionsFrameworkWebServerResources =
|
|
"/GSW/GSWExtensions/WebServerResources";
|
|
|
|
//YES to say that this application can be listed when the
|
|
//adaptor don't find an application
|
|
canDump = YES;
|
|
|
|
instances = {
|
|
InstanceNumber = {
|
|
host = IPAdressOfTheComputerOnWhichRunTheApplication;
|
|
port = ThePortListenByTheApplication;
|
|
parameters = { transport= socket; };
|
|
}
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
Example values for a localhost use:
|
|
{
|
|
canDumpStatus = YES;
|
|
GSWExtensionsFrameworkWebServerResources =
|
|
"/GSW/GSWExtensions/WebServerResources";
|
|
applications = {
|
|
MyApp = {
|
|
canDump = YES;
|
|
instances = {
|
|
1 = {
|
|
host = 127.0.0.1;
|
|
port = 9001;
|
|
parameters = { transport= socket; };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
|
|
Now, develop an application and run it !
|
|
|
|
We'll try to put a sample application soon.
|
|
|