Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
cbc92f59
Commit
cbc92f59
authored
19 years ago
by
Steven Wittens
Browse files
Options
Downloads
Patches
Plain Diff
#35725
: Make site.com:80 work like site.com
parent
463ffe24
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
INSTALL.txt
+5
-3
5 additions, 3 deletions
INSTALL.txt
includes/bootstrap.inc
+1
-1
1 addition, 1 deletion
includes/bootstrap.inc
with
6 additions
and
4 deletions
INSTALL.txt
+
5
−
3
View file @
cbc92f59
...
@@ -162,9 +162,11 @@ INSTALLATION
...
@@ -162,9 +162,11 @@ INSTALLATION
sites/example.com/settings.php
sites/example.com/settings.php
sites/default/settings.php
sites/default/settings.php
If you are installing on a non-standard port number, the ':' is
If you are installing on a non-standard port, the port number is
replaced by a '.'. For example, http://www.drupal.org:8080/mysite/test/
treated as the deepest subdomain. For example: http://www.example.com:8080/
could be loaded from sites/www.drupal.org.8080.mysite.test/.
could be loaded from sites/8080.www.example.com/. The port number
will be removed according to the pattern above if no port-specific
configuration is found, just like a real subdomain.
Each site configuration can have its own site-specific modules and
Each site configuration can have its own site-specific modules and
themes that will be made available in addition to those installed
themes that will be made available in addition to those installed
...
...
This diff is collapsed.
Click to expand it.
includes/bootstrap.inc
+
1
−
1
View file @
cbc92f59
...
@@ -115,7 +115,7 @@ function conf_init() {
...
@@ -115,7 +115,7 @@ function conf_init() {
$confdir
=
'sites'
;
$confdir
=
'sites'
;
$uri
=
explode
(
'/'
,
$_SERVER
[
'PHP_SELF'
]);
$uri
=
explode
(
'/'
,
$_SERVER
[
'PHP_SELF'
]);
$server
=
explode
(
'.'
,
str_replace
(
':'
,
'.
'
,
rtrim
(
$_SERVER
[
'HTTP_HOST'
],
'.'
)));
$server
=
explode
(
'.'
,
implode
(
'.'
,
array_reverse
(
explode
(
':
'
,
rtrim
(
$_SERVER
[
'HTTP_HOST'
],
'.'
)))
))
;
for
(
$i
=
count
(
$uri
)
-
1
;
$i
>
0
;
$i
--
)
{
for
(
$i
=
count
(
$uri
)
-
1
;
$i
>
0
;
$i
--
)
{
for
(
$j
=
count
(
$server
);
$j
>
0
;
$j
--
)
{
for
(
$j
=
count
(
$server
);
$j
>
0
;
$j
--
)
{
$dir
=
implode
(
'.'
,
array_slice
(
$server
,
-
$j
))
.
implode
(
'.'
,
array_slice
(
$uri
,
0
,
$i
));
$dir
=
implode
(
'.'
,
array_slice
(
$server
,
-
$j
))
.
implode
(
'.'
,
array_slice
(
$uri
,
0
,
$i
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment