core icon indicating copy to clipboard operation
core copied to clipboard

Problems with layout of owncloud page

Open POLARISFAMILY opened this issue 14 years ago • 71 comments

Hi all,

I have a quite similar problem, wich was reported in #195, but it seems, that it is an other problem, because I cannot solve that problem. I tried every tipp I got on #195, but it does not help.

My webpage looks like: http://puu.sh/1n2nb

The apache error log looks shows this: [Fri Nov 09 15:22:16 2012] [error] [client xxx] File does not exist: /var/www/polcustcloud/remote.php/core.css, referer: http://www.xxx.xxx/polcustcloud/?app=files [Fri Nov 09 15:22:16 2012] [error] [client xxx] File does not exist: /var/www/polcustcloud/remote.php/core.js, referer: http://www.xxx.xxx/polcustcloud/?app=files

and when I surf to http://www.mywebpage.com/ownclouddir/remote.php/webdav, a 404 error appears.

Thanks for the help in advance.

Br Martin

POLARISFAMILY avatar Nov 12 '12 09:11 POLARISFAMILY

Which web server? Which OS/Distribution?

DeepDiver1975 avatar Nov 12 '12 10:11 DeepDiver1975

I´m sorry. It is an apache2 webserver mit php5.5 on a ubuntu 10 distribution.

POLARISFAMILY avatar Nov 12 '12 10:11 POLARISFAMILY

No prob Is mod_rewrite enabled? Can you please post your apache configuration for ownCloud? Especially what options are set within < Directory >.

DeepDiver1975 avatar Nov 12 '12 10:11 DeepDiver1975

Yes, I checked that all what was posted in the issue #195. mod-rewrite is enabled

apache2.conf: LockFile ${APACHE_LOCK_DIR}/accept.lock PidFile ${APACHE_PID_FILE} Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 5

StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0 StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0

User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP}

AccessFileName .htaccess

<Files ~ "^.ht"> Order allow,deny Deny from all Satisfy all

DefaultType text/plain HostnameLookups Off ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn

Include mods-enabled/.load Include mods-enabled/.conf

Include httpd.conf Include ports.conf Include conf.d/

Include sites-enabled/

ports.conf: NameVirtualHost *:80 Listen 80

Listen 443 Listen 443

000-default in sites-enabled:

<VirtualHost *:80> ServerAdmin [email protected]

DocumentRoot /var/www Options FollowSymLinks AllowOverride all <Directory "/var/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride all
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

ServerName www.mypage.com

POLARISFAMILY avatar Nov 12 '12 10:11 POLARISFAMILY

Please try adding this line to : < Directory "/var/www/" > DirectoryIndex index.php

DeepDiver1975 avatar Nov 12 '12 10:11 DeepDiver1975

where to??

POLARISFAMILY avatar Nov 12 '12 10:11 POLARISFAMILY

should look like this:

<Directory /var/www/>
        Options FollowSymLinks
        AllowOverride all
        Order allow,deny
        allow from all
        DirectoryIndex index.php
</Directory>

DeepDiver1975 avatar Nov 12 '12 10:11 DeepDiver1975

No change. The same problem with this line.

POLARISFAMILY avatar Nov 12 '12 11:11 POLARISFAMILY

Did you restart apache? (Just to make sure - no offense)

DeepDiver1975 avatar Nov 12 '12 11:11 DeepDiver1975

Yeah, I did .. :-)

POLARISFAMILY avatar Nov 12 '12 11:11 POLARISFAMILY

What about adding another config block for the subfolder where ownCloud seems to be installed:

<Directory /var/www/polcustcloud/>
        Options FollowSymLinks
        AllowOverride all
        Order allow,deny
        allow from all
        DirectoryIndex index.php
</Directory>

DeepDiver1975 avatar Nov 12 '12 11:11 DeepDiver1975

Sorry. Does not help.... That´s really bad. I am not sure since when the problem comes up. I installed SSL after owncloud isntall and I updated to 4.5.1

POLARISFAMILY avatar Nov 12 '12 11:11 POLARISFAMILY

Is your site publicly available? So you mind sending me the link?

DeepDiver1975 avatar Nov 12 '12 11:11 DeepDiver1975

yes, I can: www.polarisfamily.com/polcustcloud

POLARISFAMILY avatar Nov 12 '12 11:11 POLARISFAMILY

the apache config is somewhat broken as request for /polcustcloud/remote.php/core.css are redirected to index.php. Is .htaccess processing enabled?

AllowOverride All

DeepDiver1975 avatar Nov 12 '12 12:11 DeepDiver1975

Yes, it is enabled and I checked that also in the site config.

POLARISFAMILY avatar Nov 12 '12 12:11 POLARISFAMILY

Can you please post you .htaccess with the ownCloud installation?

DeepDiver1975 avatar Nov 12 '12 12:11 DeepDiver1975

ErrorDocument 403 /polcustcloud/core/templates/403.php ErrorDocument 404 /polcustcloud/core/templates/404.php php_value upload_max_filesize 512M php_value post_max_size 512M php_value memory_limit 512M SetEnv htaccessWorking true RewriteEngine on RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule ^.well-known/host-meta /public.php?service=host-meta [QSA,L] RewriteRule ^.well-known/carddav /remote.php/carddav/ [R] RewriteRule ^.well-known/caldav /remote.php/caldav/ [R] RewriteRule ^apps/([^/])/(..(css|php))$ index.php?app=$1&getfile=$2 [QSA,L] RewriteRule ^remote/(.*) remote.php [QSA,L] Options -Indexes

POLARISFAMILY avatar Nov 12 '12 12:11 POLARISFAMILY

@bartv2 @icewind1991 or someone else: Are these rewrite rules setup right? THX

DeepDiver1975 avatar Nov 12 '12 12:11 DeepDiver1975

I haven´t changed anything in these settings and it worked fine. I even do not know where to set that up in that case.....

POLARISFAMILY avatar Nov 12 '12 12:11 POLARISFAMILY