Installation complete, virtualhosts are confused

I can load "http://domain/_admin" and i get the 'login prompt, WITH the correct styles, and images (thats important).


but, when I enter root as user/pass, it says login incorrect.



Then, when I try "http://domain/mysource_matrix/_admin", I again get the login prompt, with the correct images and colors and styles. I enter "root" as user and pass, and it takes me to the admin control system… except… none of the styles are rendering, the java applet doesn't render, and none of the images are appearing.



experimenting I took a URL for one of the images…

"http://domain/mysource_matrix/__lib/web/images/tree/branch.gif" and removed the "mysource_matrix/" from the url giving me.

"http://domain/__lib/web/images/tree/branch.gif"



And, guess what, the image rendered.



here is my Virtualhost info for mysource. (I removed my domain name for a approximation of privacy… :wink:


    
         DocumentRoot /applications/web/mysource_matrix/core/web
         ServerName domain.domain
    
         
                Options Indexes FollowSymLinks
                Order deny,allow
                Deny from all
          
         
                Options Indexes FollowSymLinks
                Order allow,deny
                Allow from all
         
         
                Options Indexes FollowSymLinks
                Order allow,deny
                Allow from all
         
         
                Options Indexes FollowSymLinks
                Order allow,deny
                Allow from all
         
         
                Options Indexes FollowSymLinks
                Order allow,deny
                Allow from all
          
    
         Alias "/__data"    "/applications/web/mysource_matrix/data/public"
         Alias "/__lib"     "/applications/web/mysource_matrix/core/lib"
         Alias "/__fudge"   "/applications/web/mysource_matrix/fudge"
         Alias "/"          "/applications/web/mysource_matrix/core/web/index.php/"
    
    


(yes, I know its on port 8081, thats intentional)

any idea whats wrong?
Thank you.

[quote]any idea whats wrong?
[right][post=“9456”]<{POST_SNAPBACK}>[/post][/right][/quote]



Can you post your /applications/web/mysource_matrix/data/private/conf/main.inc file? Sounds like your System Root URL is not configured correctly, so Matrix is building the wrong URLs once you login.

    <?php
    define('SQ_CONF_DB_DSN', 'pgsql://matrix@unix()/mysource_matrix');
    define('SQ_CONF_DB2_DSN', 'pgsql://matrix@unix()/mysource_matrix');
    define('SQ_CONF_DB3_DSN', 'pgsql://matrix2@unix()/mysource_matrix');
    define('SQ_CONF_PEAR_PATH', SQ_SYSTEM_ROOT.'/php_includes');
    $inc_dir = ini_get('include_path');
    $inc_dir = (substr($inc_dir, 0, 2) == '.:') ? '.:'.SQ_CONF_PEAR_PATH.':'.substr($inc_dir, 2) : SQ_CONF_PEAR_PATH.':'.$inc_dir;
    ini_set('include_path', $inc_dir);
    
    define('SQ_CONF_BACKEND_SUFFIX', '_admin');
    define('SQ_CONF_LIMBO_SUFFIX', '_edit');
    define('SQ_CONF_NOCACHE_SUFFIX', '_nocache');
    define('SQ_CONF_ASSET_TREE_BASE', 64);
    define('SQ_CONF_ASSET_TREE_SIZE', 4);
    define('SQ_CONF_ASSET_CACHE_SIZE_WEB', -1);
    define('SQ_CONF_ASSET_CACHE_SIZE_CLI', -1);
    define('SQ_CONF_ROLLBACK_ENABLED', '0');
    define('SQ_CONF_DEBUG', 3);
    define('SQ_CONF_SYSTEM_NAME', 'The System');
    define('SQ_CONF_SYSTEM_OWNER', '');
    define('SQ_CONF_SYSTEM_ROOT_URLS', 'domain.domain:8081/mysource_matrix');
    define('SQ_CONF_STATIC_ROOT_URL', '');
    define('SQ_CONF_WEB_PATH_SEPARATOR', '_');
    define('SQ_CONF_STATIC_ROOT_HTTP', true);
    define('SQ_CONF_STATIC_ROOT_HTTPS', false);
    define('SQ_CONF_DEFAULT_EMAIL', 'dgoodyear@uarts.edu');
    define('SQ_CONF_TECH_EMAIL', 'dgoodyear@uarts.edu');
    define('SQ_CONF_MAX_LOGIN_ATTEMPTS', 3);
    define('SQ_CONF_REFRESH_INTERVAL', 120);
    define('SQ_CONF_LOCK_LENGTH', 600);
    define('SQ_CONF_ASSET_MAP_ASSET_LIMIT', 50);
    define('SQ_CONF_SEND_LAST_MODIFIED_HEADER', '0');
    define('SQ_CONF_SEND_NOT_MODIFIED_HEADER', '0');
    define('SQ_CONF_ERRORS_HIDE_FRONTEND', false);
    define('SQ_CONF_DEFAULT_FRONTEND_LANGUAGE', 'en');
    define('SQ_CONF_DEFAULT_BACKEND_LOCALE', 'en_AU');
    define('SQ_CONF_DEFAULT_CHARACTER_SET', 'iso-8859-1');
    define('SQ_CONF_ALLOW_IP_CHANGE', '0');
    define('SQ_CONF_ALLOW_HTTP_LOGIN', '0');
    define('SQ_CONF_ACCEPT_HTTP_CREDS', '0');
    define('SQ_CONF_COMMIT_BUTTON_TEXT', 'Commit');
    define('SQ_CONF_LOG_EXTENSION', '.log');
    define('SQ_CONF_LOG_FILE_SYSTEM', 'system');
    define('SQ_CONF_LOG_FILE_ERROR', 'error');
    ini_set('error_log',  SQ_LOG_PATH.'/'.SQ_CONF_LOG_FILE_ERROR.SQ_CONF_LOG_EXTENSION);
    define('SQ_CONF_LOG_ERRORS', true);
    ini_set('log_errors', '1');
    define('SQ_CONF_SESSION_GC_MAXLIFETIME', 604800);
    ini_set('session.gc_maxlifetime', 604800);
    define('SQ_CONF_EDITING_TIME', 3600);
    ?>


define('SQ_CONF_SYSTEM_ROOT_URLS', 'domain.domain:8081/mysource_matrix'); <-- seems to be what you want.

should I strip the "/mysource_matrix" part?
(I'm going to try that... and see... but please comment)

[quote]should I strip the “/mysource_matrix” part?
(I’m going to try that… and see… but please comment)

[right][post=“9458”]<{POST_SNAPBACK}>[/post][/right][/quote]



That’s it. :slight_smile: Your VirtualHost sets up Matrix for the root of your domain, so your System Root URL has to match it. It should be (as you guessed) “host.domain.com:8081



Then, logging in via host.domain.com:8081/_admin should work fine.

I removed that bit and things work.


Thanks!

No worries. Also remember that when you specify a URL for your first Site asset, you need to include the port number as well. :slight_smile: