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

Install nextcloud on a existing web site as a subpath (http://example.com/nextcloud) #6

Open
aalaesar opened this issue Sep 23, 2016 · 9 comments

Comments

@aalaesar
Copy link
Member

User may just want to install a nextcloud instance as a subfolder of another website /domain

@aalaesar aalaesar added enhancement New feature or request Feature labels Sep 23, 2016
@aalaesar aalaesar added this to the 1.0 - Releasing to galaxy milestone Sep 23, 2016
@aalaesar aalaesar self-assigned this Sep 23, 2016
@aalaesar aalaesar removed their assignment Jan 11, 2017
@aalaesar aalaesar added help wanted and removed enhancement New feature or request labels Jan 30, 2017
@aalaesar
Copy link
Member Author

@noplanman
I'm quite puzzled about this one. Specially with nginx.
I'm not sure it is possible to do it as easy as in Apache2, adding a directory.

I mean: changing the pattern to add the directory path is simple
but i'm not sure how to implement the resulting conf file into an already existing nginx configuration without breaking things.
You seems to know much more than me about web design & config.

@aalaesar aalaesar changed the title Install nextcloud on a existing web site as a subfolder Install nextcloud on a existing web site as a subpath (http://example.com/nextcloud) Jan 30, 2017
@noplanman
Copy link
Contributor

It should be the same as on Apache, just put the config file into /etc/nginx/sites-available and then simlink it into /etc/nginx/sites-enabled.
That's also how Apache does it, right? (I'm not all too familiar with Apache 😄)

@aalaesar
Copy link
Member Author

So Are you saying that nginx accept multiple server blocks with a identical server_name and port statements and will merge their conf ?

In fact, I did'nt well explained myself:
Let say that a user have some website configured to be served at http(s)://example.com
He wants to add a nextcloud instance on his server and wants it at http(s)://example.com/nextcloud or whatever the path could be...

How can the role add nextcloud to his existing configuration:

  • if he's using apache2 ?
  • if he's using nginx ?

without breaking things...
For apache2, an example has already be given in the nextcloud's doc
The nginx conf example is a self contained server block and I'm not sure if adding another server block for the same port and server_name might work.
this may require other templates...

@noplanman
Copy link
Contributor

Ok, I understand now.

I think for that case the best would be to serve nextcloud on a separate internal port and then proxy the request, which would be added manually by the user in their existing config.

I guess it could be possible to add it with ansible with blockinfile, but it may be a bit difficult depending on the complexity of an existing configuration.

@aalaesar aalaesar removed this from the 1.3 - Add advanced features milestone Jan 30, 2017
@aalaesar
Copy link
Member Author

Than you for your response @noplanman .
I'm putting this one on hold, giving that it may be much more difficult than expected to add this feature.
I'll read some books on nginx in the following weeks, maybe i'll find something usefull...

@aalaesar aalaesar added this to To do in New features Sep 10, 2018
mihailstoynov pushed a commit to mihailstoynov/install_nextcloud that referenced this issue Nov 25, 2018
Without this, the error is:

```
OCP\\Files\\NotFoundException in /opt/nextcloud/lib/private/Files/Node/Node.php:97
Stack trace:
#0 /opt/nextcloud/lib/private/Files/Node/Node.php(216): OC\\Files\\Node\\Node->getFileInfo()
#1 /opt/nextcloud/lib/private/Files/Node/Node.php(117): OC\\Files\\Node\\Node->getPermissions()
nextcloud#2 /opt/nextcloud/lib/private/Files/Node/Folder.php(155): OC\\Files\\Node\\Node->checkPermissions(4)
nextcloud#3 /opt/nextcloud/lib/private/Files/AppData/AppData.php(94): OC\\Files\\Node\\Folder->newFolder('css')
nextcloud#4 /opt/nextcloud/lib/private/Files/AppData/AppData.php(114): OC\\Files\\AppData\\AppData->getAppDataFolder()
nextcloud#5 /opt/nextcloud/lib/private/Template/IconsCacher.php(70): OC\\Files\\AppData\\AppData->newFolder('icons')
nextcloud#6 [internal function]: OC\\Template\\IconsCacher->__construct(Object(OC\\Log), Object(OC\\Files\\AppData\\Factory), Object(OC\\URLGenerator))
nextcloud#7 /opt/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(81): ReflectionClass->newInstanceArgs(Array)
nextcloud#8 /opt/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\\AppFramework\\Utility\\SimpleContainer->buildClass(Object(ReflectionClass))
nextcloud#9 /opt/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\\AppFramework\\Utility\\SimpleContainer->resolve('OC\\\\Template\\\\Ico...')
nextcloud#10 /opt/nextcloud/lib/private/ServerContainer.php(132): OC\\AppFramework\\Utility\\SimpleContainer->query('OC\\\\Template\\\\Ico...')
nextcloud#11 /opt/nextcloud/lib/private/Server.php(969): OC\\ServerContainer->query('OC\\\\Template\\\\Ico...')
nextcloud#12 /opt/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\\Server->OC\\{closure}(Object(OC\\Server))
nextcloud#13 /opt/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\\Container->offsetGet('OC\\\\Template\\\\SCS...')
nextcloud#14 /opt/nextcloud/lib/private/ServerContainer.php(132): OC\\AppFramework\\Utility\\SimpleContainer->query('OC\\\\Template\\\\SCS...')
nextcloud#15 /opt/nextcloud/lib/private/Repair.php(138): OC\\ServerContainer->query('OC\\\\Template\\\\SCS...')
nextcloud#16 /opt/nextcloud/core/register_command.php(143): OC\\Repair::getRepairSteps()
nextcloud#17 /opt/nextcloud/lib/private/Console/Application.php(118): require_once('/opt/nextcloud/...')
nextcloud#18 /opt/nextcloud/console.php(95): OC\\Console\\Application->loadCommands(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
nextcloud#19 /opt/nextcloud/occ(11): require_once('/opt/nextcloud/...')
nextcloud#20 {main}",
```
mihailstoynov pushed a commit to mihailstoynov/install_nextcloud that referenced this issue Nov 25, 2018
Without this, the error is:

```
OCP\\Files\\NotFoundException in /opt/nextcloud/lib/private/Files/Node/Node.php:97
Stack trace:
#0 /opt/nextcloud/lib/private/Files/Node/Node.php(216): OC\\Files\\Node\\Node->getFileInfo()
#1 /opt/nextcloud/lib/private/Files/Node/Node.php(117): OC\\Files\\Node\\Node->getPermissions()
nextcloud#2 /opt/nextcloud/lib/private/Files/Node/Folder.php(155): OC\\Files\\Node\\Node->checkPermissions(4)
nextcloud#3 /opt/nextcloud/lib/private/Files/AppData/AppData.php(94): OC\\Files\\Node\\Folder->newFolder('css')
nextcloud#4 /opt/nextcloud/lib/private/Files/AppData/AppData.php(114): OC\\Files\\AppData\\AppData->getAppDataFolder()
nextcloud#5 /opt/nextcloud/lib/private/Template/IconsCacher.php(70): OC\\Files\\AppData\\AppData->newFolder('icons')
nextcloud#6 [internal function]: OC\\Template\\IconsCacher->__construct(Object(OC\\Log), Object(OC\\Files\\AppData\\Factory), Object(OC\\URLGenerator))
nextcloud#7 /opt/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(81): ReflectionClass->newInstanceArgs(Array)
nextcloud#8 /opt/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\\AppFramework\\Utility\\SimpleContainer->buildClass(Object(ReflectionClass))
nextcloud#9 /opt/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\\AppFramework\\Utility\\SimpleContainer->resolve('OC\\\\Template\\\\Ico...')
nextcloud#10 /opt/nextcloud/lib/private/ServerContainer.php(132): OC\\AppFramework\\Utility\\SimpleContainer->query('OC\\\\Template\\\\Ico...')
nextcloud#11 /opt/nextcloud/lib/private/Server.php(969): OC\\ServerContainer->query('OC\\\\Template\\\\Ico...')
nextcloud#12 /opt/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\\Server->OC\\{closure}(Object(OC\\Server))
nextcloud#13 /opt/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\\Container->offsetGet('OC\\\\Template\\\\SCS...')
nextcloud#14 /opt/nextcloud/lib/private/ServerContainer.php(132): OC\\AppFramework\\Utility\\SimpleContainer->query('OC\\\\Template\\\\SCS...')
nextcloud#15 /opt/nextcloud/lib/private/Repair.php(138): OC\\ServerContainer->query('OC\\\\Template\\\\SCS...')
nextcloud#16 /opt/nextcloud/core/register_command.php(143): OC\\Repair::getRepairSteps()
nextcloud#17 /opt/nextcloud/lib/private/Console/Application.php(118): require_once('/opt/nextcloud/...')
nextcloud#18 /opt/nextcloud/console.php(95): OC\\Console\\Application->loadCommands(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
nextcloud#19 /opt/nextcloud/occ(11): require_once('/opt/nextcloud/...')
nextcloud#20 {main}",
```
@staticdev
Copy link
Collaborator

@aalaesar this one has removed help wanted but still not done right? Do you have plans for it?

@aalaesar
Copy link
Member Author

aalaesar commented Mar 8, 2023

@aalaesar this one has removed help wanted but still not done right? Do you have plans for it?

I think I'll drop it. I'll do a quick search in the doc, if I find elements against it, it will be close.
Since I opened it nobody requested the feature, neither proposed help.

@aalaesar
Copy link
Member Author

aalaesar commented Mar 8, 2023

@aalaesar this one has removed help wanted but still not done right? Do you have plans for it?

I think I'll drop it. I'll do a quick search in the doc, if I find elements against it, it will be closed.
Since I opened it nobody requested the feature, neither proposed help.

@staticdev
Copy link
Collaborator

@aalaesar I think I would also not invest time on it and close as wont do.

wiktor2200 pushed a commit to wiktor2200/ansible-collection-nextcloud-admin that referenced this issue Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
New features
  
To do
Development

No branches or pull requests

3 participants