Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- domain.com.conf
- > <VirtualHost *:80>
- > # The ServerName directive sets the request scheme, hostname and port that
- > # the server uses to identify itself. This is used when creating
- > # redirection URLs. In the context of virtual hosts, the ServerName
- > # specifies what hostname must appear in the request's Host: header to
- > # match this virtual host. For the default virtual host (this file) this
- > # value is not decisive as it is used as a last resort host regardless.
- > # However, you must set it for any further virtual host explicitly.
- > #ServerName www.example.com
- >
- > ServerName domain.com
- > ServerAlias domain.com
- >
- > ServerAdmin webmaster@localhost
- > DocumentRoot /var/www/html
- > <IfModule mod_rewrite.c>
- > RewriteEngine On
- > RewriteCond %{HTTPS} off
- > RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
- > </IfModule>
- >
- >
- >
- > # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
- > # error, crit, alert, emerg.
- > # It is also possible to configure the loglevel for particular
- > # modules, e.g.
- > #LogLevel info ssl:warn
- >
- > ErrorLog ${APACHE_LOG_DIR}/error.log
- > CustomLog ${APACHE_LOG_DIR}/access.log combined
- >
- > # For most configuration files from conf-available/, which are
- > # enabled or disabled at a global level, it is possible to
- > # include a line for only one particular virtual host. For example the
- > # following line enables the CGI configuration for this host only
- > # after it has been globally disabled with "a2disconf".
- > #Include conf-available/serve-cgi-bin.conf
- >
- > #<Directory /var/www/>
- > # +Options +Indexes +FollowSymLinks +MultiViews
- > # AllowOverride None
- >
- >
- > RewriteCond %{SERVER_NAME} =www.domain.com [OR]
- > RewriteCond %{SERVER_NAME} =domaincom
- > RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
- > </VirtualHost>
- >
- > # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
- domain.com-ssl.conf
- > <IfModule mod_ssl.c>
- > <VirtualHost *:443>
- > # The ServerName directive sets the request scheme, hostname and port that
- > # the server uses to identify itself. This is used when creating
- > # redirection URLs. In the context of virtual hosts, the ServerName
- > # specifies what hostname must appear in the request's Host: header to
- > # match this virtual host. For the default virtual host (this file) this
- > # value is not decisive as it is used as a last resort host regardless.
- > # However, you must set it for any further virtual host explicitly.
- > #ServerName www.example.com
- >
- > ServerName domain.com
- > ServerAlias www.domain.com
- >
- > ServerAdmin webmaster@localhost
- > DocumentRoot /var/www/html
- >
- > # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
- > # error, crit, alert, emerg.
- > # It is also possible to configure the loglevel for particular
- > # modules, e.g.
- > #LogLevel info ssl:warn
- >
- > ErrorLog ${APACHE_LOG_DIR}/error.log
- > CustomLog ${APACHE_LOG_DIR}/access.log combined
- >
- > # For most configuration files from conf-available/, which are
- > # enabled or disabled at a global level, it is possible to
- > # include a line for only one particular virtual host. For example the
- > # following line enables the CGI configuration for this host only
- > # after it has been globally disabled with "a2disconf".
- > #Include conf-available/serve-cgi-bin.conf
- > Include /etc/letsencrypt/options-ssl-apache.conf
- > SSLCertificateFile /etc/letsencrypt/live/www.domain.com/fullchain.pem
- > SSLCertificateKeyFile /etc/letsencrypt/live/www.domain.com/privkey.pem
- > </VirtualHost>
- >
- > # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
- > </IfModule>
- Owncloud is under /var/www/owncloud.conf
- >
- > Alias /owncloud "/var/www/owncloud/"
- >
- > <Directory /var/www/owncloud/>
- > Options +FollowSymlinks
- > AllowOverride All
- >
- > <IfModule mod_dav.c>
- > Dav off
- > </IfModule>
- >
- > <IfModule mod_headers.c>
- > Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
- > </IfModule>
- >
- > SetEnv HOME /var/www/owncloud
- > SetEnv HTTP_HOME /var/www/owncloud
- > </Directory>
- The owncloud.log file tells the following:
- > {"reqId":"e4A7bdKkck05IfPgqkXp","level":3,"time":"2019-12-02T14:42:31+00:00","remoteAddr":"000.000.000.000","user":"--","app":"no app in context","method":"GET","url":"\/owncloud\/","message":"Exception: {\"Exception\":\"OCP\\\\App\\\\AppNotFoundException\",\"Message\":\" does not exist\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(479): OC\\\\App\\\\InfoParser->parse(false)\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(768): OC\\\\App\\\\AppManager->getAppInfoByPath('\\\/var\\\/www\\\/ownclo...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(709): OC\\\\App\\\\AppManager->getAppVersionByPath('\\\/var\\\/www\\\/ownclo...')\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(651): OC\\\\App\\\\AppManager->findAppInDirectories('files_videoplay...')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(548): OC\\\\App\\\\AppManager->getAppPath('files_videoplay...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(114): OC_App::getAppPath('files_videoplay...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(585): OC_App::loadApps(Array)\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(1005): OC::init()\\n#8 \\\/var\\\/www\\\/owncloud\\\/index.php(53): require_once('\\\/var\\\/www\\\/ownclo...')\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/InfoParser.php\",\"Line\":41}"}
- > {"reqId":"e4A7bdKkck05IfPgqkXp","level":3,"time":"2019-12-02T14:42:31+00:00","remoteAddr":"000.000.000.000","user":"--","app":"no app in context","method":"GET","url":"\/owncloud\/","message":"Exception: {\"Exception\":\"OCP\\\\App\\\\AppNotFoundException\",\"Message\":\" does not exist\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(479): OC\\\\App\\\\InfoParser->parse(false)\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(768): OC\\\\App\\\\AppManager->getAppInfoByPath('\\\/var\\\/www\\\/ownclo...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(709): OC\\\\App\\\\AppManager->getAppVersionByPath('\\\/var\\\/www\\\/ownclo...')\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(651): OC\\\\App\\\\AppManager->findAppInDirectories('files_videoplay...')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(548): OC\\\\App\\\\AppManager->getAppPath('files_videoplay...')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(474): OC_App::getAppPath('files_videoplay...')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(847): OC::loadAppClassPaths()\\n#7 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/InfoParser.php\",\"Line\":41}"}
- > {"reqId":"e4A7bdKkck05IfPgqkXp","level":3,"time":"2019-12-02T14:42:31+00:00","remoteAddr":"000.000.000.000","user":"--","app":"index","method":"GET","url":"\/owncloud\/","message":"Exception: {\"Exception\":\"OCP\\\\Session\\\\Exceptions\\\\SessionNotAvailableException\",\"Message\":\"Session has been closed - no further changes to the session are allowed\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Session\\\/Memory.php(52): OC\\\\Session\\\\Memory->validateSession()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Security\\\/CSRF\\\/TokenStorage\\\/SessionStorage.php(63): OC\\\\Session\\\\Memory->set('requesttoken', 'SAF3SlD39jPCP7F...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Security\\\/CSRF\\\/CsrfTokenManager.php(57): OC\\\\Security\\\\CSRF\\\\TokenStorage\\\\SessionStorage->setToken('SAF3SlD39jPCP7F...')\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Util.php(511): OC\\\\Security\\\\CSRF\\\\CsrfTokenManager->getToken(*** sensitive parameters replaced ***)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/template.php(84): OCP\\\\Util::callRegister()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(403): OC_Template->__construct('', 'update.admin', 'guest')\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(344): OC::printUpgradePage()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(870): OC::checkUpgrade(true)\\n#8 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Session\\\/Memory.php\",\"Line\":120}"}
- ### Server configuration
- **Operating system**: Debian Jessie
- **Web server:** apache 2.4
- **Database:** mysql
- **PHP version:** php7
- **ownCloud version:**10.2.1.4
- **The content of config/config.php:**
- > $CONFIG = array (
- > 'updatechecker' => false,
- > 'instanceid' => '....',
- > 'passwordsalt' => '.....',
- > 'secret' => '........',
- > 'trusted_domains' =>
- > array (
- > 0 => 'domain.com',
- > ),
- > 'datadirectory' => '/var/www/owncloud/data',
- > 'overwrite.cli.url' => 'https://domain.com/owncloud',
- > 'dbtype' => 'mysql',
- > 'version' => '10.2.1.4',
- > 'dbname' => 'ownCloud',
- > 'dbhost' => 'localhost',
- > 'dbtableprefix' => 'oc_',
- > 'dbuser' => 'ownCloud',
- > 'dbpassword' => '....',
- > 'logtimezone' => 'UTC',
- > 'installed' => true,
- > 'mail_domain' => 'domain.com',
- > 'mail_from_address' => 'Webmaster',
- > 'mail_smtpmode' => 'php',
- > 'updater.secret' => '.....',
- > 'theme' => '',
- > 'loglevel' => 2,
- > 'maintenance' => false,
- >
- >
- >
- > );
- **List of activated apps:**
- > Enabled:
- > - brute_force_protection: 1.0.1
- > - comments: 0.3.0
- > - configreport: 0.2.0
- > - dav: 0.4.0
- > - federatedfilesharing: 0.4.0
- > - federation: 0.1.0
- > - files: 1.5.2
- > - files_external: 0.7.1
- > - files_sharing: 0.11.0
- > - files_trashbin: 0.9.1
- > - files_versions: 1.3.0
- > - firstrunwizard: 1.2.0
- > - market: 0.5.0
- > - notifications: 0.5.0
- > - provisioning_api: 0.5.0
- > - systemtags: 0.3.0
- > - updatenotification: 0.2.1
- > Disabled:
- > - encryption
- > - external
- > - files_mediaviewer
- > - user_external
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement