SHARE
TWEET

Untitled

a guest Dec 2nd, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. domain.com.conf
  2. >     <VirtualHost *:80>
  3. >             # The ServerName directive sets the request scheme, hostname and port that
  4. >             # the server uses to identify itself. This is used when creating
  5. >             # redirection URLs. In the context of virtual hosts, the ServerName
  6. >             # specifies what hostname must appear in the request's Host: header to
  7. >             # match this virtual host. For the default virtual host (this file) this
  8. >             # value is not decisive as it is used as a last resort host regardless.
  9. >             # However, you must set it for any further virtual host explicitly.
  10. >             #ServerName www.example.com
  11. >
  12. >             ServerName domain.com
  13. >             ServerAlias domain.com
  14. >
  15. >             ServerAdmin webmaster@localhost
  16. >             DocumentRoot /var/www/html
  17. >                     <IfModule mod_rewrite.c>
  18. >                     RewriteEngine On
  19. >                     RewriteCond %{HTTPS} off
  20. >                     RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  21. >                     </IfModule>
  22. >
  23. >
  24. >
  25. >             # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  26. >             # error, crit, alert, emerg.
  27. >             # It is also possible to configure the loglevel for particular
  28. >             # modules, e.g.
  29. >             #LogLevel info ssl:warn
  30. >
  31. >             ErrorLog ${APACHE_LOG_DIR}/error.log
  32. >             CustomLog ${APACHE_LOG_DIR}/access.log combined
  33. >
  34. >             # For most configuration files from conf-available/, which are
  35. >             # enabled or disabled at a global level, it is possible to
  36. >             # include a line for only one particular virtual host. For example the
  37. >             # following line enables the CGI configuration for this host only
  38. >             # after it has been globally disabled with "a2disconf".
  39. >             #Include conf-available/serve-cgi-bin.conf
  40. >
  41. >             #<Directory /var/www/>
  42. >             #        +Options +Indexes +FollowSymLinks +MultiViews
  43. >             #        AllowOverride None
  44. >
  45. >
  46. >     RewriteCond %{SERVER_NAME} =www.domain.com [OR]
  47. >     RewriteCond %{SERVER_NAME} =domaincom
  48. >     RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  49. >     </VirtualHost>
  50. >
  51. >     # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  52.  
  53.    
  54. domain.com-ssl.conf
  55. > <IfModule mod_ssl.c>
  56. > <VirtualHost *:443>
  57. >         # The ServerName directive sets the request scheme, hostname and port that
  58. >         # the server uses to identify itself. This is used when creating
  59. >         # redirection URLs. In the context of virtual hosts, the ServerName
  60. >         # specifies what hostname must appear in the request's Host: header to
  61. >         # match this virtual host. For the default virtual host (this file) this
  62. >         # value is not decisive as it is used as a last resort host regardless.
  63. >         # However, you must set it for any further virtual host explicitly.
  64. >         #ServerName www.example.com
  65. >
  66. >         ServerName domain.com
  67. >         ServerAlias www.domain.com
  68. >
  69. >         ServerAdmin webmaster@localhost
  70. >         DocumentRoot /var/www/html
  71. >
  72. >         # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  73. >         # error, crit, alert, emerg.
  74. >         # It is also possible to configure the loglevel for particular
  75. >         # modules, e.g.
  76. >         #LogLevel info ssl:warn
  77. >
  78. >         ErrorLog ${APACHE_LOG_DIR}/error.log
  79. >         CustomLog ${APACHE_LOG_DIR}/access.log combined
  80. >
  81. >         # For most configuration files from conf-available/, which are
  82. >         # enabled or disabled at a global level, it is possible to
  83. >         # include a line for only one particular virtual host. For example the
  84. >         # following line enables the CGI configuration for this host only
  85. >         # after it has been globally disabled with "a2disconf".
  86. >         #Include conf-available/serve-cgi-bin.conf
  87. > Include /etc/letsencrypt/options-ssl-apache.conf
  88. > SSLCertificateFile /etc/letsencrypt/live/www.domain.com/fullchain.pem
  89. > SSLCertificateKeyFile /etc/letsencrypt/live/www.domain.com/privkey.pem
  90. > </VirtualHost>
  91. >
  92. > # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  93. > </IfModule>
  94.  
  95.  
  96.  
  97. Owncloud is under /var/www/owncloud.conf
  98. >
  99. > Alias /owncloud "/var/www/owncloud/"
  100. >
  101. > <Directory /var/www/owncloud/>
  102. > Options +FollowSymlinks
  103. > AllowOverride All
  104. >
  105. > <IfModule mod_dav.c>
  106. > Dav off
  107. > </IfModule>
  108. >
  109. > <IfModule mod_headers.c>
  110. >       Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
  111. >     </IfModule>
  112. >
  113. > SetEnv HOME /var/www/owncloud
  114. > SetEnv HTTP_HOME /var/www/owncloud
  115. > </Directory>
  116.  
  117.  
  118. The owncloud.log file tells the following:
  119.  
  120. > {"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}"}
  121. > {"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}"}
  122. > {"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}"}
  123.  
  124.  
  125.  
  126.  
  127.  
  128. ### Server configuration
  129. **Operating system**: Debian Jessie
  130.  
  131. **Web server:** apache 2.4
  132.  
  133. **Database:** mysql
  134.  
  135. **PHP version:** php7
  136.  
  137. **ownCloud version:**10.2.1.4
  138.  
  139.  
  140.  
  141. **The content of config/config.php:**
  142. > $CONFIG = array (
  143. >   'updatechecker' => false,
  144. >   'instanceid' => '....',
  145. >   'passwordsalt' => '.....',
  146. >   'secret' => '........',
  147. >   'trusted_domains' =>
  148. >   array (
  149. >     0 => 'domain.com',
  150. >   ),
  151. >   'datadirectory' => '/var/www/owncloud/data',
  152. >   'overwrite.cli.url' => 'https://domain.com/owncloud',
  153. >   'dbtype' => 'mysql',
  154. >   'version' => '10.2.1.4',
  155. >   'dbname' => 'ownCloud',
  156. >   'dbhost' => 'localhost',
  157. >   'dbtableprefix' => 'oc_',
  158. >   'dbuser' => 'ownCloud',
  159. >   'dbpassword' => '....',
  160. >   'logtimezone' => 'UTC',
  161. >   'installed' => true,
  162. >   'mail_domain' => 'domain.com',
  163. >   'mail_from_address' => 'Webmaster',
  164. >   'mail_smtpmode' => 'php',
  165. >   'updater.secret' => '.....',
  166. >   'theme' => '',
  167. >   'loglevel' => 2,
  168. >   'maintenance' => false,
  169. >
  170. >
  171. >
  172. > );
  173.  
  174.  
  175. **List of activated apps:**
  176.  
  177. > Enabled:
  178. >   - brute_force_protection: 1.0.1
  179. >   - comments: 0.3.0
  180. >   - configreport: 0.2.0
  181. >   - dav: 0.4.0
  182. >   - federatedfilesharing: 0.4.0
  183. >   - federation: 0.1.0
  184. >   - files: 1.5.2
  185. >   - files_external: 0.7.1
  186. >   - files_sharing: 0.11.0
  187. >   - files_trashbin: 0.9.1
  188. >   - files_versions: 1.3.0
  189. >   - firstrunwizard: 1.2.0
  190. >   - market: 0.5.0
  191. >   - notifications: 0.5.0
  192. >   - provisioning_api: 0.5.0
  193. >   - systemtags: 0.3.0
  194. >   - updatenotification: 0.2.1
  195. > Disabled:
  196. >   - encryption
  197. >   - external
  198. >   - files_mediaviewer
  199. >   - user_external
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top