Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Error; Unable to access through nginx #3517

Closed
carobell opened this issue Feb 16, 2017 · 2 comments
Closed

Server Error; Unable to access through nginx #3517

carobell opened this issue Feb 16, 2017 · 2 comments

Comments

@carobell
Copy link

Steps to reproduce

  1. Install Nextcloud following documentation
  2. SSL, HTTP to HTTPS configured
  3. Adding to NGINX by copy what we used from Owncloud
  4. when it did not work using documentation from nextcloud website)

Expected behaviour

Using nextcloud through nginx (https://domain.com/nextcloud)

Actual behaviour

Can only access through https://172.16.0.47

Server configuration

Operating system:
ubuntu 16.04

Web server:
Apache or nginx ?

Database:
mysql

PHP version:
7

Nextcloud version: (see Nextcloud admin page)
11

Updated from an older Nextcloud/ownCloud or fresh install:
fresh

Where did you install Nextcloud from:
?

Signing status:

Signing status No errors have been found.

List of activated apps:

App list Enabled: - apporder: 0.3.3 - comments: 1.1.0 - dav: 1.1.1 - direct_menu: 0.10.0 - federatedfilesharing: 1.1.1 - federation: 1.1.1 - files: 1.6.1 - files_pdfviewer: 1.0.1 - files_sharing: 1.1.1 - files_texteditor: 2.2 - files_trashbin: 1.1.0 - files_versions: 1.4.0 - firstrunwizard: 2.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - nextcloud_announcements: 1.0 - password_policy: 1.1.0 - provisioning_api: 1.1.0 - serverinfo: 1.1.1 - sharebymail: 1.0.1 - systemtags: 1.1.3 - theming: 1.1.1 - twofactor_backupcodes: 1.0.0 - updatenotification: 1.1.1 - user_ldap: 1.1.1 - workflowengine: 1.1.1 Disabled: - activity - admin_audit - encryption - external - files_accesscontrol - files_automatedtagging - files_external - files_retention - files_videoplayer - gallery - notifications - survey_client - templateeditor - user_external - user_saml

The content of config/config.php:

Config report { "system": { "instanceid": "ocjwkg00ihsg", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "localhost", "domain.com", "172.16.0.47", "172.16.0.19", "partage" ], "datadirectory": "\/home\/DOMAIN\/", "overwrite.cli.url": "https:\/\/172.16.0.47", "dbtype": "mysql", "version": "11.0.1.2", "dbname": "nextcloud", "dbhost": "localhost", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "logtimezone": "America\/Toronto", "default_language": "fr_CA", "defaultapp": "files", "logfile": "\/var\/log\/nextcloud.log", "installed": true, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "filelocking.enabled": "true", "redis": { "host": "\/var\/run\/redis\/redis.sock", "port": 0, "timeout": 0 }, "htaccess.RewriteBase": "\/", "ldapIgnoreNamingRules": false, "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory", "ldapUserCleanupInterval": 15, "maintenance": false, "singleuser": false, "share_folder": "\/home\/DOMAIN\/", "trusted_proxies": [ [ "172.16.0.19" ] ], "forwarded_for_headers": [ "HTTP_X_FORWARDED", "HTTP_FORWARDED_FOR" ] } }

Are you using external storage, if yes which one: local/smb/sftp/...
No

Are you using encryption: yes/no
No

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP

LDAP configuration (delete this part if not used)

LDAP config +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Configuration | s02 | +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | hasMemberOfFilterSupport | 1 | | hasPagedResultSupport | | | homeFolderNamingRule | | | lastJpegPhotoLookup | 0 | | ldapAgentName | CN=CloudAdmin,OU=Usager,OU=DOMAIN,DC=domain,DC=local | | ldapAgentPassword | *** | | ldapAttributesForGroupSearch | | | ldapAttributesForUserSearch | | | ldapBackupHost | | | ldapBackupPort | | | ldapBase | DC=domain,DC=local | | ldapBaseGroups | DC=domain,DC=local | | ldapBaseUsers | DC=domain,DC=local | | ldapCacheTTL | 600 | | ldapConfigurationActive | 1 | | ldapDynamicGroupMemberURL | | | ldapEmailAttribute | | | ldapExperiencedAdmin | 0 | | ldapExpertUUIDGroupAttr | | | ldapExpertUUIDUserAttr | | | ldapExpertUsernameAttr | | | ldapGroupDisplayName | cn | | ldapGroupFilter | (&(|(objectclass=group))(|(cn=ATM)(cn=ATQ)(cn=Administrateur)(cn=BEL)(cn=CAM)(cn=CTM)(cn=CTQ)(cn=GAT)(cn=SAG)(cn=SHE))) | | ldapGroupFilterGroups | ATM;ATQ;Administrateur;BEL;CAM;CTM;CTQ;GAT;SAG;SHE | | ldapGroupFilterMode | 1 | | ldapGroupFilterObjectclass | group | | ldapGroupMemberAssocAttr | member | | ldapHost | 172.16.0.3 | | ldapIgnoreNamingRules | | | ldapLoginFilter | (&(&(|(objectclass=organizationalPerson)(objectclass=person)(objectclass=user))(|(|(memberof=CN=Domain,OU=Groupes,OU=DOMAIN,DC=domain,DC=local)(primaryGroupID=1110))))(|(samaccountname=%uid)(|(mailPrimaryAddress=%uid)(mail=%uid)))) | | ldapLoginFilterAttributes | | | ldapLoginFilterEmail | 1 | | ldapLoginFilterMode | 0 | | ldapLoginFilterUsername | 1 | | ldapNestedGroups | 0 | | ldapOverrideMainServer | | | ldapPagingSize | 500 | | ldapPort | 389 | | ldapQuotaAttribute | | | ldapQuotaDefault | | | ldapTLS | 0 | | ldapUserDisplayName | displayName | | ldapUserDisplayName2 | | | ldapUserFilter | (&(|(objectclass=organizationalPerson)(objectclass=person)(objectclass=user))(|(|(memberof=CN=Domain,OU=Groupes,OU=DOMAIN,DC=domain,DC=local)(primaryGroupID=1110)))) | | ldapUserFilterGroups | Domain | | ldapUserFilterMode | 0 | | ldapUserFilterObjectclass | organizationalPerson;person;user | | ldapUuidGroupAttribute | auto | | ldapUuidUserAttribute | auto | | turnOffCertCheck | 0 | | turnOnPasswordChange | 0 | | useMemberOfToDetectMembership | 1 | +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Client configuration

Browser:
Chrome

Operating system:
Ubuntu and Windows

Logs

Web server error log

2017/02/16 15:46:36 [error] 8024#0: *16 open() "/usr/share/nginx/html/login" failed (2: No such file or directory), client: 172.16.0.1, server: nginx.domain.com, request: "GET /login HTTP/1.1", host: "domain.com"

Nextcloud log (data/nextcloud.log)

Nextcloud log nothing (everything is about the external smb share that I disabled, nothing new since)

Browser log

Browser log I don't know
@Flole998
Copy link
Contributor

This is probably due to nginx not being configured as stated in the manual. Doesn't look like a bug to me.

@MorrisJobke
Copy link
Member

This is probably due to nginx not being configured as stated in the manual. Doesn't look like a bug to me.

Correct. Just use https://docs.nextcloud.com/server/11/admin_manual/installation/nginx_nextcloud_9x.html to setup nginx.

If you have problems with this, please ask in the forums help.nextcloud.com for help. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants