Joomla website op synology

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Goede avond iedereen,

Via mijn Synology NAS heb ik een website gemaakt op een eigen domein met de standaard Joomla software uit de store. Nu is deze website live maar moet ik standaard /joomla erachter zetten wil ik naar de site gaan.

Volgens de informatie welke ik vind in de software en in de instructies zou dit weg moeten kunnen wanneer ik een aanpassing maak in de url rewriting
Apache and Litespeed: Rename htaccess.txt to .htaccess

Ik heb dit aangepast maar het veranderd niks aan hoe ik de site kan benaderen.

Kunnen jullie mij wellicht verder helpen?

Beste antwoord (via sjtienuh op 29-04-2024 14:40)


  • Arie-
  • Registratie: December 2008
  • Niet online
Kun je niet via webstation > virtual host > het pad van je joomla site uitbreiden met /joomla er achter?

Alle reacties


Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Ik heb de joomla services al een keer herstart, net als de NAS maar alles blijft zoals net momenteel is. Ik kom er niet mee uit met de instructies welke ik binnen joomla zie en met wat ik gevonden heb op internet, maar dit kwam op hetzelfde neer

Acties:
  • 0 Henk 'm!

  • sypie
  • Registratie: Oktober 2000
  • Niet online
Heb je de inhoud van de .htaccess ook aangepast?

Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Heb ik iets over de kop gezien? Ik heb niet gevonden wat ik moet aanpassen behalve de naam. Zal mijn fout en inzicht wel zijn dan. Wat moet ik hier aanpassen?

Acties:
  • 0 Henk 'm!

  • RobIII
  • Registratie: December 2001
  • Laatst online: 11:14

RobIII

Admin Devschuur®

^ Romeinse Ⅲ ja!

Je weet zeker dat je bestand .htaccess heet? Dus het begint met een punt?

There are only two hard problems in distributed systems: 2. Exactly-once delivery 1. Guaranteed order of messages 2. Exactly-once delivery.

Je eigen tweaker.me redirect

Over mij


Acties:
  • 0 Henk 'm!

  • Dennahz
  • Registratie: November 2001
  • Laatst online: 15-05 22:24

Dennahz

Life feels like hell should.

Een .htaccess van zo'n pakket doet niks anders dan alle requests doorsturen naar de router van Joomla.
De site werkt wel via je /joomla linkje?

Twitter


Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
RobIII schreef op vrijdag 19 april 2024 @ 10:47:
Je weet zeker dat je bestand .htaccess heet? Dus het begint met een punt?
Hier ben ik inderdaad zeker van, net nog even gecontroleerd na het lezen van jouw antwoord!

Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Dennahz schreef op vrijdag 19 april 2024 @ 10:49:
Een .htaccess van zo'n pakket doet niks anders dan alle requests doorsturen naar de router van Joomla.
De site werkt wel via je /joomla linkje?
Als ik achter het domein /joomla zet dan werkt deze inderdaad wel. Maar zou graag dat /joomla weg willen.

Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Het is mij nog steeds niet gelukt, zouden jullie mij toch nog verder kunnen helpen?
Wanneer er informatie mist vul ik deze graag aan voor jullie

Acties:
  • 0 Henk 'm!

  • Coach4All
  • Registratie: Januari 2003
  • Laatst online: 16-05 17:22

Coach4All

I'm a Coach 4 All

Zet de inhoud van je .htaccess hier eens neer, dan kunnen wij beoordelen of de rewrite uberhaupt goed gaat/zou moeten gaan.....

--- Systeembeheerdersdag --- Voedselintolerantie ---


Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Dit is de inhoud:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# Synology PHP
AddHandler default-handler .htm .html .shtml
AddHandler php-fastcgi .php
AddType text/html .php
Action php-fastcgi /php56-fpm-handler.fcgi
# Synology PHP

##
# @package    Joomla
# @copyright  (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
# @license    GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line 'Options +FollowSymLinks' may cause problems with some server configurations.
# It is required for the use of Apache mod_rewrite, but it may have already been set by
# your server administrator in a way that disallows changing it in this .htaccess file.
# If using it causes your site to produce an error, comment it out (add # to the
# beginning of the line), reload your site in your browser and test your sef urls. If
# they work, then it has been set by your server administrator and you do not need to
# set it here.
##

## MISSING CSS OR JAVASCRIPT ERRORS
#
# If your site looks strange after enabling this file, then your server is probably already
# gzipping css and js files and you should comment out the GZIP section of this file.
##

## OPENLITESPEED
#
# If you are using an OpenLiteSpeed web server then any changes made to this file will
# not take effect until you have restarted the web server.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymlinks
Options -Indexes

## No directory listings
<IfModule mod_autoindex.c>
    IndexIgnore *
</IfModule>

## Suppress mime type detection in browsers for unknown types
<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
</IfModule>

## Protect against certain cross-origin requests. More information can be found here:
## https://developer.mozilla.org/en-US/docs/Web/HTTP/Cross-Origin_Resource_Policy_(CORP)
## https://web.dev/why-coop-coep/
#<IfModule mod_headers.c>
#   Header always set Cross-Origin-Resource-Policy "same-origin"
#   Header always set Cross-Origin-Embedder-Policy "require-corp"
#</IfModule>

## Disable inline JavaScript when directly opening SVG files or embedding them with the object-tag
<FilesMatch "\.svg$">
  <IfModule mod_headers.c>
    Header always set Content-Security-Policy "script-src 'none'"
  </IfModule>
</FilesMatch>

## These directives are only enabled if the Apache mod_rewrite module is enabled
<IfModule mod_rewrite.c>
    RewriteEngine On

    ## Begin - Rewrite rules to block out some common exploits.
    # If you experience problems on your site then comment out the operations listed
    # below by adding a # to the beginning of the line.
    # This attempts to block the most common type of exploit `attempts` on Joomla!
    #
    # Block any script trying to base64_encode data within the URL.
    RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
    # Block any script that includes a <script> tag in URL.
    RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
    # Block any script trying to set a PHP GLOBALS variable via URL.
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block any script trying to modify a _REQUEST variable via URL.
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Return 403 Forbidden header and show the content of the root home page
    RewriteRule .* index.php [F]
    #
    ## End - Rewrite rules to block out some common exploits.

    ## Begin - Custom redirects
    #
    # If you need to redirect some pages, or set a canonical non-www to
    # www redirect (or vice versa), place that code here. Ensure those
    # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
    #
    ## End - Custom redirects

    ##
    # Uncomment the following line if your webserver's URL
    # is not directly related to physical file paths.
    # Update Your Joomla! Directory (just / for root).
    ##

    # RewriteBase /

    ## Begin - Joomla! core SEF Section.
    #
    # PHP FastCGI fix for HTTP Authorization, required for the API application
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    # -- SEF URLs for the API application
    # If the requested path starts with /api, the file is not /api/index.php
    # and the request has not already been internally rewritten to the
    # api/index.php script
    RewriteCond %{REQUEST_URI} ^/api/
    RewriteCond %{REQUEST_URI} !^/api/index\.php
    # and the requested path and file doesn't directly match a physical file
    RewriteCond %{REQUEST_FILENAME} !-f
    # and the requested path and file doesn't directly match a physical folder
    RewriteCond %{REQUEST_FILENAME} !-d
    # internally rewrite the request to the /api/index.php script
    RewriteRule .* api/index.php [L]
    # -- SEF URLs for the public frontend application
    # If the requested path and file is not /index.php and the request
    # has not already been internally rewritten to the index.php script
    RewriteCond %{REQUEST_URI} !^/index\.php
    # and the requested path and file doesn't directly match a physical file
    RewriteCond %{REQUEST_FILENAME} !-f
    # and the requested path and file doesn't directly match a physical folder
    RewriteCond %{REQUEST_FILENAME} !-d
    # internally rewrite the request to the index.php script
    RewriteRule .* index.php [L]
    #
    ## End - Joomla! core SEF Section.
</IfModule>

## These directives are only enabled if the Apache mod_rewrite module is disabled
<IfModule !mod_rewrite.c>
    <IfModule mod_alias.c>
        # When Apache mod_rewrite is not available, we instruct a temporary redirect
        # of the start page to the front controller explicitly so that the website
        # and the generated links can still be used.
        RedirectMatch 302 ^/$ /index.php/
        # RedirectTemp cannot be used instead
    </IfModule>
</IfModule>

## GZIP
## These directives are only enabled if the Apache mod_headers module is enabled.
## This section will check if a .gz file exists and if so will stream it
##     directly or fallback to gzip any asset on the fly
## If your site starts to look strange after enabling this file, and you see
##     ERR_CONTENT_DECODING_FAILED in your browser console network tab,
##     then your server is already gzipping css and js files and you don't need this
##     block enabled in your .htaccess
<IfModule mod_headers.c>
    # Serve gzip compressed CSS files if they exist
    # and the client accepts gzip.
    RewriteCond "%{HTTP:Accept-encoding}" "gzip"
    RewriteCond "%{REQUEST_FILENAME}\.gz" -s
    RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]

    # Serve gzip compressed JS files if they exist
    # and the client accepts gzip.
    RewriteCond "%{HTTP:Accept-encoding}" "gzip"
    RewriteCond "%{REQUEST_FILENAME}\.gz" -s
    RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]

    # Serve correct content types, and prevent mod_deflate double gzip.
    RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
    RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]

    <FilesMatch "(\.js\.gz|\.css\.gz)$">
        # Serve correct encoding type.
        Header set Content-Encoding gzip

        # Force proxies to cache gzipped &
        # non-gzipped css/js files separately.
        Header append Vary Accept-Encoding
    </FilesMatch>
</IfModule>

[ Voor 0% gewijzigd door rens-br op 23-04-2024 11:49 . Reden: code en quote tags toegevoegd ]


Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Coach4All schreef op dinsdag 23 april 2024 @ 10:57:
Zet de inhoud van je .htaccess hier eens neer, dan kunnen wij beoordelen of de rewrite uberhaupt goed gaat/zou moeten gaan.....
Zie bovenstaande, vergeten jou te replyen

Acties:
  • 0 Henk 'm!

  • ewoutw
  • Registratie: Oktober 2013
  • Nu online
synology werkt toch met nginx? ik dacht dat .htaccss niet werkte icm met nginx. Volgens mij moet je een virtial host aanmaken en die naar de Joomla verwijzen.

Maar ik denk zelf dat het makkelijkst is om een PHP bestand in de /web/ map te plaatsen. Waar je natuurlijk je eigen domeinnaam in moet vullen

code:
1
2
3
4
<?php
header('Location: https://www.example.com/');
exit;
?>

Acties:
  • +1 Henk 'm!

  • Webgnome
  • Registratie: Maart 2001
  • Laatst online: 08:10
@ewoutw als het een nginx issue is waarom los je het dan met php op? Gewoon in nginx aanpassen inderdaad als de NAS nginx draaid that is.

Strava | AP | IP | AW


Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Webgnome schreef op dinsdag 23 april 2024 @ 15:24:
@ewoutw als het een nginx issue is waarom los je het dan met php op? Gewoon in nginx aanpassen inderdaad als de NAS nginx draaid that is.
Zou je mij kunnen uitleggen waar ik dit kan aanpassen? Ik heb er geen app voor geïnstalleerd. en kan er verder ook geen settings over vinden. Enkel bij Verbinding-connectiviteit vind ik een verwijzing naar nginx

Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
ewoutw schreef op dinsdag 23 april 2024 @ 15:20:
synology werkt toch met nginx? ik dacht dat .htaccss niet werkte icm met nginx. Volgens mij moet je een virtial host aanmaken en die naar de Joomla verwijzen.

Maar ik denk zelf dat het makkelijkst is om een PHP bestand in de /web/ map te plaatsen. Waar je natuurlijk je eigen domeinnaam in moet vullen

code:
1
2
3
4
<?php
header('Location: https://www.example.com/');
exit;
?>
Hi,

Dit heb ik geprobeerd, maar werkt helaas niet

Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Zijn er nog medetweakers welke mij kunnen verder helpen met dit issue. Tot op heden heb ik het niet kunnen oplossen.

Acties:
  • 0 Henk 'm!

  • Josk79
  • Registratie: September 2013
  • Laatst online: 16-05 00:17
Om er achter te komen of htaccess uberhaupt wordt gebruikt, maak eens expres een typefout. Voeg bijv. een regel toe met tekst “Dit is fout”. Elke request zou dan een server error moeten geven. Het stukje redirect tbv joomla is trouwens uitgecommentariseerd met # dus doet niks.

Nginx ken ik niet en ik weet niets van site hosten op synology, dus kan je daar niet mee helpen. Wees je wel bewust van de risico’s!

Acties:
  • Beste antwoord
  • 0 Henk 'm!

  • Arie-
  • Registratie: December 2008
  • Niet online
Kun je niet via webstation > virtual host > het pad van je joomla site uitbreiden met /joomla er achter?

Acties:
  • 0 Henk 'm!

  • sjtienuh
  • Registratie: Maart 2011
  • Laatst online: 15-05 15:42
Arie- schreef op maandag 29 april 2024 @ 12:15:
Kun je niet via webstation > virtual host > het pad van je joomla site uitbreiden met /joomla er achter?
Het is gelukt, bedankt voor deze tip!
Of ja heb daarbij de Joomla installatie gekozen en deze laten verwijzen naar de juiste site

[ Voor 15% gewijzigd door sjtienuh op 29-04-2024 14:44 ]

Pagina: 1