Active
Project:
Subfolders Domain (sub domains)
Version:
7.x-2.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2015 at 13:51 UTC
Updated:
29 Oct 2018 at 14:36 UTC
Jump to comment: Most recent
Comments
Comment #1
heyyo commentedMy problem seems to be related to pah prefix language that I'm using.
I need several domains(subfolders), and each of them has a different language. I don't necessarily need the language prefix in the url.
Did anyone had success with Domain locale and this module?
EDIT: If I disable the language detection by URL in admin/config/regional/language/configure, I could successfully see each subfolder in its own language defined with Domain Locale.
So the drupal language interface is in the correct language, but all urls inside subfolder get a Page Not found.
Any idea ?
EDIT2: I finally disabled both module Locale and Domain Locale to see if the problem of page not found was related, but I still have this problem of error 404.
To summarize I have 3 domains:
maindomain.com - default
maindomain.com.france - subfolder /france
maindomain.com.uk - subfolder /uk
every urls on the maindomain.com work as expected. All urls inside subfolders :
maindomain.com/france or maindomain.com/uk get error 404.
PS: to be sure it wasn't a conflict with url rewriting modules,I disableb redirect and global redirect. But no changes.
Comment #2
heyyo commentedComment #3
heyyo commentedI have the feeling that's my error 404 problem is not related to this module but how Nginx handles symlink.
Comment #4
heyyo commentedI'm still stuck with issue. I could see on your website https://www.secourspopulaire.fr/ that you also use Nginx, did you make anything special to make it work with Nginx ?
Comment #5
brice_gato commentedHello heyyo,
We have not done anything special on Nginx side. I struggled to find the cause of your problem.
Comment #6
heyyo commentedmerci du soutien.
thanks for all your efforts.
let me know if you have any ideas.
best regards
Comment #7
heyyo commentedJe continue en francais plus simple a expliquer...
Le probleme ne vient pas de Nginx, car avec une installation de Drupal + module Domain Access + votre module subfolders domain, tout marche niquel.
Parcontre sur mon site Drupal qui avait deja des domaines de crees, j'ai toujours une erreur 404 generee par Drupal(pas nginx) lorsque je navigue sur des subdomains qui sont des subfolders.
Mais parcontre je vois que Subfolders domain recupere correctement le domaine en cours, car le slogan, sitename affiche est bien celui du subfolder et non celui du main domain.
J'essaye desesperement de trouver pourquoir Drupal renvoie cette erreur 404 en debuggant avec XDebug, mais je ne sais pas a quel endroit chercher.
Des idees seraient les bienvenus...
Comment #8
heyyo commentedI think I spoke too fast, it's not even working with a clean drupal when clean urls is enabled, I have the same 404 error from Drupal.
So I suppose I'm doing something wrong in the utilization of your module.
What I did on a fresh Drupal 7.34 :
1) Install Drupal with minimal profile and domain d7.local and clean url enabled
2) Enable Domain Access 7.x-3.11
3) Add this line at the end of settings.php
include DRUPAL_ROOT . '/sites/all/modules/contrib/domain/settings.inc';
4) Enable Subfolders Domain
5) Create new domain as subfolder with
Click save with no other configuration
6) run drush cron
7) Browse d7.local/uk, I have the error 404 from Drupal
If clean url is disabled I could navigate to http://d7.local/uk/?q=admin/structure/domain without error
but http://d7.local/uk get a 404 error
Sorry to make a lot of noise on this issue, but I really need this.
Comment #9
heyyo commentedJust to let you know that I tried your module on Pantheon which is also using Nginx, and I have the same problem of page not found.
Comment #10
brice_gato commentedI think your problem is related to the interpretation of the urls, so not specially because of Subfolders module. We have bodies that rotate with this module and nothing to report so far.
Comment #11
heyyo commentedI tried several configurations of Nginx with your module:
The one of NGinx community:
http://wiki.nginx.org/Drupal
The one by Drupal community:
https://github.com/perusio/drupal-with-nginx
The one of one of the biggest hosting for Drupal:
http://getpantheon.com
None of them worked.
I wanted to use your module, because I wanted to host our website on Pantheon, but on this hosting we can't modifiy Nginx configuration.
I create a Pantheon sandbox website with Domain Acccess + your module. I sent you the access in private message.
Comment #12
jaakko commentedI am experiencing similar problems. Was there any solutions or explanations to this issue?
Comment #13
dv-vc commentedWe are experiencing the same issue with NGINX and 404s as well. Has anyone figured out a workaround on NGINX?
Comment #14
Anonymous (not verified) commentedNow that Pantheon is changing their pricing structure for subdomains, I've started working with this module to move our subdomains to subfolders, but I think I'm running into the same problem as everyone else here, or at least something similar enough that I'll contribute my troubles to the mix. I ran through the installation steps in the readme, including a successful drush cron and verified that the symlinks were created and correct. After setting up the domains on their tab, I get:
-- An active front page that shows the correct view
--404s on any other path
I agree with heyyo that this seems like a configuration issue on Pantheon's side, but I'd still like any advice for avenues to investigate in solving this. I did find a Pantheon user trying to install WordPress on a subdirectory who ended up having to use symlinks and change a few variables in their config:
https://groups.google.com/a/pantheon.io/forum/#!topic/power-users/o4wVxAtqOHw
Could that be an option for us here?
Comment #15
fchometonHi, was there any solutions or explanations to this issue? I'm experiencing the same issue on Bitnami
Comment #16
fchometonFor information, the problem was at the level of hosting. My client had passed his site under bitnami.org, and a file (http-app.conf) prevented the .htaccess from working properly.