Announcement

Collapse
No announcement yet.

openSUSE 11.3 => need to enable JavaScript => invalid link to scripts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • openSUSE 11.3 => need to enable JavaScript => invalid link to scripts

    Hello,
    after installation of current ox6.18 on openSUSE 11.3 I am not able to start the web-frontend in Firefox.
    The message
    Code:
     "You need to enable JavaScript to access the Open-Xchange Server."
    is displayed.
    But javascript and cookies are enabled, in fact. Opening the Firefox-Error console displays:
    "check is not defined"... looking into index.html, I found an item
    Code:
    <script src="v=MadTQNA/check.js" type="text/javascript">
    and all links have the path-prefix "v=MadTQNA".
    The file "/etc/apache2/conf.d/proxy_ajp.conf" was created, and "/etc/apache2/vhosts.d/ox.conf" too.
    And
    Code:
    APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_user authn_dbm 
    autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir proxy headers deflate 
    authz_default proxy_ajp rewrite"
    was added to "/etc/sysconfig/apache2".

    What is going wrong here? Please help. How can this be fixed?
    Many thanks, Mike.
    Last edited by mickey.lm; 11-21-2010, 02:01 PM. Reason: Linebreaks added.

  • #2
    Hi Mike,

    please attach those apache config files. Make sure no internal data is in there when posting them. The "v=MadTQNA" stuff is for auto-versioning of the GUI and is handled by a mod_rewrite rule.

    Thanks

    Comment


    • #3
      Hi Martin.
      I am attaching the apache config files now and hope it will be useful:

      proyx_ajp.conf:
      Code:
      <Proxy *>
        Order deny,allow
        allow from all
      </Proxy>
      
      ProxyPass /axis2 ajp://127.0.0.1:8009/axis2 smax=0 ttl=60 retry=5
      ProxyPass /ajax ajp://127.0.0.1:8009/ajax smax=0 ttl=60 retry=5
      ProxyPass /servlet ajp://127.0.0.1:8009/servlet smax=0 ttl=60 retry=5
      ProxyPass /infostore ajp://127.0.0.1:8009/infostore smax=0 ttl=60 retry=5
      ProxyPass /publications ajp://127.0.0.1:8009/publications smax=0 ttl=60 retry=5
      # next line is required for OXtender for Business Mobility only
      ProxyPass /Microsoft-Server-ActiveSync ajp://127.0.0.1:8009/Microsoft-Server-ActiveSync smax=0 ttl=60 retry=5
      and ox.conf
      Code:
      <VirtualHost *:80>
      	ServerAdmin webmaster@localhost
      
      	DocumentRoot /srv/www/htdocs/
      
      	<Directory /srv/www/htdocs/>
      		AllowOverride None
      		Order allow,deny
      		allow from all
      		RedirectMatch ^/$ /ox6/
                     Options +FollowSymLinks +SymLinksIfOwnerMatch
      	</Directory>
             # deflate
            AddOutputFilterByType DEFLATE text/html text/plain text/javascript application/javascript text/css text/xml application/xml text/x-js application/x-javascript
      
      	# pre-compressed files
      	AddType text/javascript .jsz
      	AddType text/css .cssz
      	AddType text/xml .xmlz
      	
      	AddEncoding x-gzip .jsz .cssz .xmlz
      	SetEnvIf Request_URI "\.(jsz|cssz|xmlz)$" no-gzip
      	
      	ExpiresActive On
      	
      	<Location /ox6>
      	        # Expires (via ExpiresByType to override global settings)
      	        ExpiresByType image/gif "access plus 6 months"
      	        ExpiresByType image/png "access plus 6 months"
      	        ExpiresByType image/jpg "access plus 6 months"
      	        ExpiresByType image/jpeg "access plus 6 months"
      	        ExpiresByType text/css "access plus 6 months"
      	        ExpiresByType text/html "access plus 6 months"
      	        ExpiresByType text/xml "access plus 6 months"
      	        ExpiresByType text/javascript "access plus 6 months"
      	        ExpiresByType text/x-js "access plus 6 months"
      	        ExpiresByType application/x-javascript "access plus 6 months"
      	        ExpiresDefault "access plus 6 months"
      	        Header append Cache-Control "private"
      	        Header unset Last-Modified
      	        Header unset Vary
      	        # Strip version
      	        RewriteEngine On
      	        RewriteRule v=\w+/(.+) $1 [L]
      	        # Turn off ETag
      	        Header unset ETag
      	        FileETag None
      	</Location>
      	
      	<Location /ox6/ox.html>
      	        ExpiresByType text/html "now"
      	        ExpiresDefault "now"
      	        Header unset Last-Modified
      	        Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
      	        # Turn off ETag
      	        Header unset ETag
      	        FileETag None
      	</Location>
      	
      	<Location /ox6/index.html>
      	        ExpiresByType text/html "now"
      	        ExpiresDefault "now"
      	        Header unset Last-Modified
      	        Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
      	        # Turn off ETag
      	        Header unset ETag
      	        FileETag None
      	</Location>
      </VirtualHost>
      and /etc/sysconfig/apache2
      Code:
      ## Path:	   Network/WWW/Apache/SuSEhelp
      ## Description:	   SuSE help doc server configuration
      ## Type:	   yesno
      ## Default:	   no
      ## Config:         apache
      ## ServiceRestart: apache
      ## Command:
      #
      # Set this to yes on the central documentation server
      # or to configure apache for local use of susehelp. 
      # Then the online-help-system indices are automatically adjusted
      # and access to the help-files is allowed as specified in DOC_ALLOW.
      # To run as a client for the central documentation server who's name
      # is specified in DOC_HOST, just set DOC_SERVER to no.
      # The DOC_HOST and DOC_ALLOW variables are in the file /etc/sysconfig/susehelp.
      #
      DOC_SERVER="no"
      ## Path:	Network/WWW/Apache2
      ## Description:	Configuration for Apache 2
      
      ## Type:	string
      ## Default:	""
      ## ServiceRestart: apache2
      #
      # Here you can name files, separated by spaces, that should be Include'd from 
      # httpd.conf. 
      #
      # This allows you to add e.g. VirtualHost statements without touching 
      # /etc/apache2/httpd.conf itself, which makes upgrading easier. 
      #
      APACHE_CONF_INCLUDE_FILES=""
      
      ## Type:	string
      ## Default:	""
      ## ServiceRestart: apache2
      #
      # Here you can name directories, separated by spaces, that should be Include'd 
      # from httpd.conf. 
      #
      # All files contained in these directories will be recursively included by apache.
      # If a pattern like *.conf is appended, apache will use it.
      #
      # Examples: "/etc/apache2/my_conf/"
      #           "/etc/apache2/virtual_hosts/*.conf"
      #           "local/*.conf /srv/www/virtual/"
      #
      APACHE_CONF_INCLUDE_DIRS=""
      
      ## Type:	string
      ## Default:	"actions alias auth_basic authz_host authn_file authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
      ## ServiceRestart: apache2
      #
      # [It might look silly to not simply edit httpd.conf for the LoadModule statements.
      # However, since the LoadModule statements might need an absolute path to the modules,
      # switching between MPMs can be quite a hassle. It's easier to just give the names here.]
      #
      # * list of all modules shipped with the base distribution: 
      #
      #    actions alias asis auth_basic auth_digest authn_alias authn_anon
      #    authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm
      #    authz_default authz_groupfile authz_host authz_owner authz_user
      #    autoindex bucketeer cache case_filter case_filter_in cern_meta cgi
      #    charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio
      #    echo env expires ext_filter file_cache filter headers ident imagemap
      #    include info ldap log_config log_forensic logio mem_cache mime mime_magic
      #    negotiation optional_fn_export optional_fn_import optional_hook_export
      #    optional_hook_import proxy proxy_ajp proxy_balancer proxy_connect
      #    proxy_ftp proxy_http proxy_scgi reqtimeout rewrite setenvif speling ssl
      #    status substitute suexec unique_id userdir usertrack version vhost_alias 
      #
      #   see http://httpd.apache.org/docs-2.2/mod/ !
      #
      # * It pays to use IfDefine statements... like
      #    <IfModule mod_xyz.c>
      #        ....
      #    </IfModule>
      #
      # * In the APACHE_MODULES variable, you can use mod_xyz or just xyz syntax.
      #   You may also name an absolute path if you like.
      #
      # * NOTE ON SSL: before you can use mod_ssl, you need a server certificate. 
      #   A test certificate can be created by entering 
      #   'cd /usr/share/doc/packages/apache2; ./certificate.sh' as root.
      #   Also, you need to set the ServerName inside the <VirtualHost _default_:443> 
      #   block to the fully qualified domain name (see /etc/HOSTNAME).
      # * if your server certificate is protected by a passphrase you should increase the
      #   APACHE_START_TIMEOUT (see above)
      # * to finally enable ssl support, you need to add 'SSL' to APACHE_SERVER_FLAGS 
      #   below.
      #
      # * modules listed here will be ignored if they are not installed
      #
      #
      # EXAMPLES:
      #
      # fairly minimal
      # APACHE_MODULES="authz_host alias auth dir log_config mime setenvif"
      #
      # apache's default installation
      # APACHE_MODULES="authz_host actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir"
      # your settings
      APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir proxy headers deflate authz_default proxy_ajp rewrite"
      
      
      
      ## Type:	string
      ## Default:	""
      ## ServiceRestart: apache2
      #
      # Additional server flags:
      #
      # Put here any server flags ("Defines") that you want to hand over to 
      # httpd at start time, or other command line flags.
      #
      # Background: Any directives within an <IfDefine flag>...</IfDefine>
      #             section are only processed if the flag is defined.
      #             This allows to write configuration which is active only in a
      #             special cases, like during server maintenance, or for testing
      #             something temporarily.
      #
      # Notably, to enable ssl support, 'SSL' needs to be added here.
      # To enable the server-status, 'STATUS' needs to be added here.
      #
      # It does not matter if you write flag1, -D flag1 or -Dflag1.
      # Multiple flags can be given as "-D flag1 -D flag2" or simply "flag1 flag2".
      #
      # Specifying such flags here is equivalent to giving them on the commandline.
      # (e.g. via rcapache2 start -DReverseProxy)
      #
      # Example:
      #      "SSL STATUS AWSTATS SVN_VIEWCVS no_subversion_today"
      #
      APACHE_SERVER_FLAGS=""
      
      ## Type:	string
      ## Default:	""
      ## ServiceRestart: apache2
      #
      # Which config file do you want to use?
      # (if not set, /etc/apache2/httpd.conf is used.)
      # It is unusual to need to use this setting.
      #
      # Note about ulimits:
      #   if you want to set ulimits, e.g. to increase the max number of open file handle, 
      #   or to allow core files, you can do so by editing /etc/sysconfig/apache2 and
      #   simply write the ulimit commands into that file.
      #   Example:
      #     ulimit -n 16384
      #     ulimit -H -n 16384
      #     ulimit -c unlimited
      #   See the output of "help ulimit" in the bash, or "man 1 ulimit".
      #
      APACHE_HTTPD_CONF=""
      
      ## Type:	list(prefork,worker,event,itk)
      ## Default:	""
      ## ServiceRestart: apache2
      #
      # MPM (multi-processing module) to use.
      #
      # Needed to determine with which MPM apache will run, as well as
      # against which header files modules will be built. 
      #
      # If not set, the system will simply pick one of the installed MPMs.
      #
      # The implementation of the logic is in /usr/share/apache2/find_mpm,
      # a script which can be used standalone as well if needed.
      #
      APACHE_MPM=""
      
      ## Type:	string
      ## Default:	""
      ## ServiceReload: apache2
      #
      # email address of the server administrator (ServerAdmin directive)
      # This address is added to the server's responses if APACHE_SERVERSIGNATURE 
      # is set to "email". 
      #
      # If empty ("") it defaults to webmaster@$FQHOSTNAME, where FQHOSTNAME is
      # taken from /etc/HOSTNAME. 
      #
      # Note that ServerAdmin directives inside VirtualHost statements are not
      # changed, even not the one in the stock SSL virtual host block. 
      #
      APACHE_SERVERADMIN=""
      
      ## Type:	string
      ## Default:	""
      ## ServiceReload: apache2
      #
      # ServerName gives the name and port that the server uses to identify itself.
      # This can often be determined automatically, but we recommend you specify
      # it explicitly to prevent problems during startup.
      #
      # If this is not set to valid DNS name for your host, server-generated
      # redirections will not work.  See also the UseCanonicalName directive.
      #
      # If your host doesn't have a registered DNS name, enter its IP address here.
      # You will have to access it by its address anyway, and this will make 
      # redirections work in a sensible way.
      #
      APACHE_SERVERNAME=""
      
      ## Type:	integer
      ## Default:	2
      #
      # timeout during server startup (seconds)
      # after this time, the start script decides wether the httpd process started without error.
      #
      # Increase it, if you use mod_ssl and your certificate is passphrase protected!
      #
      APACHE_START_TIMEOUT="2"
      
      ## Type:	list(on,off,email)
      ## Default:	"on"
      ## ServiceReload: apache2
      #
      # Configures the footer on server-generated documents 
      # This correlates to the ServerSignature directive. 
      #
      APACHE_SERVERSIGNATURE="on"
      
      ## Type:	list(debug,info,notice,warn,error,crit,alert,emerg)
      ## Default:	"warn"
      ## ServiceReload: apache2
      #
      # LogLevel: Control the number of messages logged to the error_log.
      #
      APACHE_LOGLEVEL="warn"
      
      ## Type:	string
      ## Default:	"/var/log/apache2/access_log combined"
      ## ServiceRestart: apache2
      #
      # The location and format of the access logfile (Common Logfile Format).
      # If you do not define any access logfiles within a <VirtualHost>
      # container, they will be logged here.  Contrarywise, if you *do*
      # define per-<VirtualHost> access logfiles, transactions will be
      # logged therein and *not* in this file.
      #
      # Simply set it to empty, if you configure it yourself somewhere else.
      # 
      # Examples:
      #
      # If you would like to have agent and referer logfiles:
      #
      # setting it to "/var/log/apache2/referer_log referer, /var/log/apache2/agent_log agent"
      #   corresponds to 
      # CustomLog /var/log/apache2/referer_log referer
      # CustomLog /var/log/apache2/agent_log   agent
      #
      # If you prefer a single logfile with access, agent, and referer information
      # (Combined Logfile Format):
      #
      # setting it to "/var/log/apache2/access_log combined"
      #   corresponds to 
      # CustomLog /var/log/apache2/access_log combined
      #
      APACHE_ACCESS_LOG="/var/log/apache2/access_log combined"
      
      ## Type:	list(On,Off,DNS)
      ## Default:	"Off"
      ## ServiceReload: apache2
      #
      # UseCanonicalName: Determines how Apache constructs self-referencing 
      # URLs and the SERVER_NAME and SERVER_PORT variables.
      # When set "Off", Apache will use the Hostname and Port supplied
      # by the client.  When set "On", Apache will use the value of the
      # ServerName directive.
      #
      APACHE_USE_CANONICAL_NAME="off"
      
      ## Type:	list(Major,Minor,Minimal,ProductOnly,OS,Full)
      ## Default:	"OS"
      ## ServiceReload: apache2
      #
      # How much information the server response header field contains about the server.
      # (installed modules, versions, etc.)
      # see http://httpd.apache.org/docs-2.2/mod/core.html#servertokens
      #
      APACHE_SERVERTOKENS="OS"
      
      ## Type:	list(on,off)
      ## Default:	"off"
      ## ServiceReload: apache2
      #
      # If mod_status is used, include extended information about the server, like 
      # CPU usage, in the status report. It is a server-wide setting, and it can cost
      # some performance!
      #
      APACHE_EXTENDED_STATUS="off"
      and at least /etc/apache2/defautl-server.conf
      Code:
      #
      # Global configuration that will be applicable for all virtual hosts, unless
      # deleted here, or overriden elswhere.
      # 
      
      DocumentRoot "/srv/www/htdocs"
      
      #
      # Configure the DocumentRoot
      #
      <Directory "/srv/www/htdocs">
       	# Possible values for the Options directive are "None", "All",
      	# or any combination of:
      	#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
      	#
      	# Note that "MultiViews" must be named *explicitly* --- "Options All"
      	# doesn't give it to you.
      	#
      	# The Options directive is both complicated and important.  Please see
      	# http://httpd.apache.org/docs-2.2/mod/core.html#options
      	# for more information.
      Options None
       	# AllowOverride controls what directives may be placed in .htaccess files.
      	# It can be "All", "None", or any combination of the keywords:
      	#   Options FileInfo AuthConfig Limit
      AllowOverride None
       	# Controls who can get stuff from this server.
      Order allow,deny
       Allow from all
      </Directory>
      
      # Aliases: aliases can be added as needed (with no limit). The format is 
      # Alias fakename realname
      #
      # Note that if you include a trailing / on fakename then the server will
      # require it to be present in the URL.  So "/icons" isn't aliased in this
      # example, only "/icons/".  If the fakename is slash-terminated, then the 
      # realname must also be slash terminated, and if the fakename omits the 
      # trailing slash, the realname must also omit it.
      #
      # We include the /icons/ alias for FancyIndexed directory listings.  If you
      # do not use FancyIndexing, you may comment this out.
      #
      Alias /icons/ "/usr/share/apache2/icons/"
      
      <Directory "/usr/share/apache2/icons">
       Options Indexes MultiViews
       AllowOverride None
       Order allow,deny
       Allow from all
      </Directory>
      
      # ScriptAlias: This controls which directories contain server scripts.
      # ScriptAliases are essentially the same as Aliases, except that
      # documents in the realname directory are treated as applications and
      # run by the server when requested rather than as documents sent to the client.
      # The same rules about trailing "/" apply to ScriptAlias directives as to
      # Alias.
      #
      ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
      
      # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
      # CGI directory exists, if you have that configured.
      #
      <Directory "/srv/www/cgi-bin">
       AllowOverride None
       Options +ExecCGI -Includes
       Order allow,deny
       Allow from all
      </Directory>
      
      # UserDir: The name of the directory that is appended onto a user's home
      # directory if a ~user request is received.
      #
      # To disable it, simply remove userdir from the list of modules in APACHE_MODULES 
      # in /etc/sysconfig/apache2.
      #
      <IfModule mod_userdir.c>
       	# Note that the name of the user directory ("public_html") cannot simply be
      	# changed here, since it is a compile time setting. The apache package
      	# would have to be rebuilt. You could work around by deleting
      	# /usr/sbin/suexec, but then all scripts from the directories would be
      	# executed with the UID of the webserver.
      UserDir public_html
       	# The actual configuration of the directory is in
      	# /etc/apache2/mod_userdir.conf.
      Include /etc/apache2/mod_userdir.conf
      </IfModule>
      
      
      # Include all *.conf files from /etc/apache2/conf.d/.
      #
      # This is mostly meant as a place for other RPM packages to drop in their
      # configuration snippet.
      #
      # You can comment this out here if you want those bits include only in a
      # certain virtual host, but not here.
      #
      Include /etc/apache2/conf.d/*.conf
      
      # The manual... if it is installed ('?' means it won't complain)
      Include /etc/apache2/conf.d/apache2-manual?conf
      ServerName suse11
      
      ServerAdmin root@suse11
      I hope this helps to solve my problem. Thanks a lot for support.
      Best greetings, Mike

      Comment


      • #4
        Hi Martin,
        thanks for your reply, here are my configurations:

        proxy_ajp.conf, ox.conf, etc/sysconf/apache2 (as apache2-current.txt)
        at least the default-server.conf from /etc/apache2.
        I hope this will help to solve my problem,
        thanks a lot for your support, greetings, Mike.

        default-server.conf.txt
        proxy_ajp.conf.txt
        ox.conf.txt
        apache2-current.txt
        Last edited by mickey.lm; 11-21-2010, 04:03 PM.

        Comment


        • #5
          Is there anybody who can help solving my "v=MadTQNA" problem?

          Comment


          • #6
            Hi,

            is the OX6 GUI really reachable under the /ox6 path of your webserver? Otherwise you have to fix the Location directives.

            Greetings

            Comment


            • #7
              Yes, it is located in /srv/www/htdocs/ox6 drirectory (the index.html file and all other resources).
              Greetings, Mike.

              Comment


              • #8
                I'm on Ubuntu 10.04, and just ran an update against the http://download.opensuse.org/reposit.../xUbuntu_9.10/ repository. I suppose that gave me version 6.18

                I now too have the same problem!

                In all browsers that used to work, my users are now getting "You need to enable JavaScript to access the Open-Xchange Server"

                as a result of 404 Not Found trying to download global.css, bgimages.css, ox.css, and check.js

                the page seems to be looking for http://myserver/ox6/v=Mh1k6zu/check.js when it should be
                looking for http://myserver/ox6/check.js

                How is this "v=Mh1k6zu" thing getting added to the path, and how do I fix it?

                Comment


                • #9
                  I have the same problem.
                  Did you find a solution for the message "You need to enable JavaScript to access the Open-Xchange Server." ?

                  Comment


                  • #10
                    Please check and fix the configuration of you webserver. There are configuration examples available at the quick-install guide over at oxpedia.org. Please note that these configuration changes are mandatory with >=6.18. Other configuration for expires or deflate can be removed.

                    Greetings

                    Comment

                    Working...
                    X