AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[joomla](server)

Martin Hope
Ajax21
Asked: 2020-12-06 12:37:55 +0800 CST

公共 IP 显示在搜索结果中而不是域中

  • 0

我使用 IIS 和 Joomla 作为 CMS 在我的 Proliant 机架服务器(运行 windows server 2012 R2)上建立了一个网站。

一切都很完美,除了一件事。每当我在 Google 上搜索我的网站时,它会显示我的公共 IP 而不是域名。它应该看起来像这样,但相反,它看起来像这样。如何让我的域名而不是 IP 显示?我已将服务器的 FQDN 配置为 example.com。我的 DNS 记录如下:

A record: Host:example.com, Points to: [my public IP]
CNAME: Host:www.example.com, Points to: example.com

我已将live_siteJoomla 配置中的选项设置为https://example.com/. 如果这很重要,我还在 Google 搜索控制台上声明了我的域。

任何帮助表示赞赏。

website domain-name-system iis joomla iis-8.5
  • 1 个回答
  • 398 Views
Martin Hope
Petri
Asked: 2020-03-28 22:43:33 +0800 CST

针对服务器编译的 Mod SSL

  • 0

我遇到了 www+https 重定向的问题,我在日志中看到了这个错误:

[ssl:warn] [pid 204:tid 412] AH01916: Init: (localhost:443) 您在标准 HTTPS(443) 端口上配置了 HTTP(80)!

因此,我尝试通过将 LogLevel Warn 更改为 LogLevel Trace6 来找到一种在 apahce_error.log 中获取更多详细信息的方法,以获取更多详细信息,并且我设法获取如下信息:

针对服务器编译的 mod_ssl/2.4.37:Apache 2.4.37,库:OpenSSL/1.1.a

我还注意到,当我尝试打开我的 apache 模块-> ssl 模块时,它会自动将其关闭。但是我的网站能够在 https 中运行工作,甚至无需读取/使用 httpd-vhosts.conf 文件,我不确定我是否应该很奇怪(O_O)[我参考其中一个网站并按照教程进行设置这个]

以下是我的 httpd.conf 供您参考。

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
# will be interpreted as '/logs/access_log'.
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.
ServerSignature On
ServerTokens Full

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
# Apache variable names used by Apache conf files:
# The names and contents of variables:
# APACHE24, VERSION_APACHE, INSTALL_DIR, APACHE_DIR, SRVROOT
# should never be changed.
Define APACHE24 Apache2.4
Define VERSION_APACHE 2.4.37
Define INSTALL_DIR D:/wamp64
Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}
Define SRVROOT ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}

ServerRoot "${SRVROOT}"
#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults
#
# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.
#
# Mutex default:logs

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen [::0]:80
Listen 0.0.0.0:443
Listen [::0]:443

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule auth_form_module modules/mod_auth_form.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_core_module modules/mod_authn_core.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_socache_module modules/mod_authn_socache.so
#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule authz_core_module modules/mod_authz_core.so
#LoadModule authz_dbd_module modules/mod_authz_dbd.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule brotli_module modules/mod_brotli.so
#LoadModule buffer_module modules/mod_buffer.so
LoadModule cache_module modules/mod_cache.so
LoadModule cache_disk_module modules/mod_cache_disk.so
#LoadModule cache_socache_module modules/mod_cache_socache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule data_module modules/mod_data.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule http2_module modules/mod_http2.so
LoadModule headers_module modules/mod_headers.so
#LoadModule heartbeat_module modules/mod_heartbeat.so
#LoadModule heartmonitor_module modules/mod_heartmonitor.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
#LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
#LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_debug_module modules/mod_log_debug.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule lua_module modules/mod_lua.so
#LoadModule macro_module modules/mod_macro.so
#LoadModule md_module modules/mod_md.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_express_module modules/mod_proxy_express.so
#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_hcheck_module modules/mod_proxy_hcheck.so
#LoadModule proxy_html_module modules/mod_proxy_html.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_http2_module modules/mod_proxy_http2.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
#LoadModule ratelimit_module modules/mod_ratelimit.so
#LoadModule reflector_module modules/mod_reflector.so
#LoadModule remoteip_module modules/mod_remoteip.so
#LoadModule request_module modules/mod_request.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule sed_module modules/mod_sed.so
#LoadModule session_module modules/mod_session.so
#LoadModule session_cookie_module modules/mod_session_cookie.so
#LoadModule session_crypto_module modules/mod_session_crypto.so
#LoadModule session_dbd_module modules/mod_session_dbd.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
#LoadModule socache_dbm_module modules/mod_socache_dbm.so
#LoadModule socache_memcache_module modules/mod_socache_memcache.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
#LoadModule speling_module modules/mod_speling.so
LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule watchdog_module modules/mod_watchdog.so
#LoadModule xml2enc_module modules/mod_xml2enc.so

LoadModule php7_module "${INSTALL_DIR}/bin/php/php7.3.1/php7apache2_4.dll"

<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon

</IfModule>

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. [email protected]
#
ServerAdmin [email protected]

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#

# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName example.com:443
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
    AllowOverride all
    Require all denied
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
HostnameLookups Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "${INSTALL_DIR}/www/example"
<Directory "${INSTALL_DIR}/www/example">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options -Indexes +FollowSymLinks +Multiviews
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don't remove
#    Require local
    Require all granted
</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ".ht*">
    Require all denied
</Files>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
#ErrorLog "logs/error.log"
ErrorLog "${INSTALL_DIR}/logs/apache_error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "${INSTALL_DIR}/logs/access.log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog "logs/access.log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "${SRVROOT}/cgi-bin/"

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock cgisock
</IfModule>

#
# "${SRVROOT}/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
#<Directory "${SRVROOT}/cgi-bin">
<Directory "${INSTALL_DIR}/www/example/">
    AllowOverride all
    Options None
    Require all granted
</Directory>


<IfModule headers_module>
    #
    # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
    # backend servers which have lingering "httpoxy" defects.
    # 'Proxy' request header is undefined by the IETF, not listed by IANA
    #
    RequestHeader unset Proxy early
</IfModule>

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    AddEncoding x-compress .Z
    AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited

#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall may be used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
# Defaults: EnableMMAP On, EnableSendfile Off
#
#EnableMMAP off
EnableSendfile off

# AcceptFilter: On Windows, none uses accept() rather than AcceptEx() and
# will not recycle sockets between connections. This is useful for network
# adapters with broken driver support, as well as some virtual network
# providers such as vpn drivers, or spam, virus or spyware filters.
AcceptFilter http none
AcceptFilter https none
# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>

# Secure (SSL/TLS) connections

#
# Note: The following must must be present to support
#       starting without SSL on platforms with no /dev/random equivalent
#       but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include conf/extra/httpd-ssl.conf

Header always append X-Frame-Options SAMEORIGIN

Include "${INSTALL_DIR}/alias/*"

以下是 httpd-ssl.conf 文件中的重要部分:

    <VirtualHost _default_:443>

    #   General setup for the virtual host
    DocumentRoot "d:/wamp64/www/example"
    ServerName localhost:443

    ErrorLog "${SRVROOT}/logs/error.log"
    TransferLog "${SRVROOT}/logs/access.log"

    #   SSL Engine Switch:
    #   Enable/Disable SSL for this virtual host.
    SSLEngine on

    #   Server Certificate:
    #   Point SSLCertificateFile at a PEM encoded certificate.  If
    #   the certificate is encrypted, then you will be prompted for a
    #   pass phrase.  Note that a kill -HUP will prompt again.  Keep
    #   in mind that if you have both an RSA and a DSA certificate you
    #   can configure both in parallel (to also allow the use of DSA
    #   ciphers, etc.)
    #   Some ECC cipher suites (http://www.ietf.org/rfc/rfc4492.txt)
    #   require an ECC certificate which can also be configured in
    #   parallel.
    SSLCertificateFile "${SRVROOT}/conf/key/example.crt"
    #SSLCertificateFile "${SRVROOT}/conf/server-dsa.crt"
    #SSLCertificateFile "${SRVROOT}/conf/server-ecc.crt"

    #   Server Private Key:
    #   If the key is not combined with the certificate, use this
    #   directive to point at the key file.  Keep in mind that if
    #   you've both a RSA and a DSA private key you can configure
    #   both in parallel (to also allow the use of DSA ciphers, etc.)
    #   ECC keys, when in use, can also be configured in parallel
    SSLCertificateKeyFile "${SRVROOT}/conf/key/example.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
</FilesMatch>

<Directory "d:/wamp4/www/example">
    SSLOptions +StdEnvVars
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order Allow,Deny
    Require all denied
    Allow from 127.0.0.1 localhost ::1
</Directory>
BrowserMatch "MSIE [2-5]" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

#   Per-Server Logging:
#   The home of a custom SSL log file. Use this when you want a
#   compact non-error SSL logfile on a virtual host basis.
CustomLog "${SRVROOT}/logs/ssl_request.log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>   

下面是我的 httpd-vhosts.conf:

# Virtual Hosts
#
#<VirtualHost *:80>
#  ServerName localhost
#  ServerAlias localhost
#  DocumentRoot "${INSTALL_DIR}/www/"
#  <Directory "${INSTALL_DIR}/www/">
#    Options +Indexes +Includes +FollowSymLinks +MultiViews
#    AllowOverride All
#    Require local
#  </Directory>
#</VirtualHost>


#
#<VirtualHost *:80>
#   ServerName localhost
#   DocumentRoot "d:/wamp64/www/example/"
#   <Directory  "d:/wamp64/www/example/">
#       Options +Indexes +Includes +FollowSymLinks +MultiViews
#       AllowOverride All
#        Order allow,deny
#        Allow from all
#       Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
#   </Directory>
#</VirtualHost>

#<VirtualHost *:443>
#   ServerName localhost:443
#   DocumentRoot "d:/wamp64/www/example/"
#   <Directory  "d:/wamp64/www/example/">
#       Options +Indexes +Includes +FollowSymLinks +MultiViews
#       AllowOverride All
#        Order allow,deny
#        Allow from all
#       Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
#   </Directory>
#</VirtualHost>

我的证书和密钥指向 httpd-ssl.conf。我希望我能在继续下一步之前解决这个问题。如果您需要我提供更多详细信息,请告诉我。请帮助和TIA!

https mod-ssl openssl joomla apache-2.4
  • 1 个回答
  • 360 Views
Martin Hope
shenkwen
Asked: 2017-03-09 07:50:48 +0800 CST

我在哪里可以找到在 Ubuntu 14.4 上运行 Joomla 时记录的 500 个错误?

  • 0

小故事:打开页面时出现 500 错误,但是当我查看错误日志时,没有任何关于此错误的信息。我认为前端的每 500 个错误都应该记录在某个地方,对吗?如果是,错误日志在哪里?

长版:我正在将我的 Joomla 网站从 3.6.2 升级到 3.6.5。是安全升级,之前本站因未及时升级被黑。在我网站的后端,当我点击“安装升级”时,我得到一个 500 页面。我在 Linode (Ubuntu 14.04) 上托管了我的网站,并使用 webmin/virtualmin 来管理服务器。对于托管在具有相同设置的同一台机器上的其他站点,如果我收到 500 错误,我可以从 webmin 的界面查看 apache 错误日志,我认为这是所有 apache/php 错误的地方记录下来。但这一次,错误日志中没有任何内容。所以我想知道是否有任何500错误无法记录在日志中?或者也许这个错误记录在其他地方?如何找到日志?

linux log-files joomla linode 500-error
  • 1 个回答
  • 3759 Views
Martin Hope
grepmaster
Asked: 2016-07-20 19:02:06 +0800 CST

新服务器上的joomla空白页

  • 0

我将 joomla web 文件夹从 ubuntu 14.04 复制到同一目录到 ubuntu 16.04 服务器。

所有设置不变。

在确保 vhost fastcgi 指向 php7.0-fpm.sock 而不是 ubuntu 16.04 上的 php5.-fpm.sock 后,它只显示空白屏幕。

在访问日志上:

192.168.1.10 - - [19/Jul/2016:11:09:45 +0800] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0"

/etc/nginx/nginx.conf

user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
        worker_connections 100;
        multi_accept on;
        use epoll;
}
http {
        client_max_body_size 200M;
        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        keepalive_requests 200;
        types_hash_max_size 2048;
        server_names_hash_max_size 1024;
        server_names_hash_bucket_size 128;
        server_tokens off;
        include /etc/nginx/mime.types;
        default_type application/octet-stream;
        access_log off;
        error_log /var/log/nginx/error.log;
        open_file_cache max=600000 inactive=20s;
        open_file_cache_valid 60s;
        open_file_cache_min_uses 2;
        open_file_cache_errors on;
        gzip on;
        gzip_vary on;
        gzip_min_length 256;
        gzip_comp_level 3;
        gzip_proxied expired no-cache no-store private auth;
        gzip_types text/css text/xml text/javascript application/x-javascript application/xml;
        gzip_disable "MSIE [1-6]\.";
        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 256 16k;
        fastcgi_busy_buffers_size 256k;
        fastcgi_temp_file_write_size 256k;
        fastcgi_connect_timeout 30;
        fastcgi_send_timeout 25;
        fastcgi_read_timeout 20;
}

/etc/nginx/sites-enabled/mydomain

server {
        listen 80;
        root /var/www/;
        index index.php index.html index.htm;
        server_name www.mydomain.com;
        location / {
                try_files $uri $uri/ /index.php?q=$request_uri;
        }
        location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
}

以前(ubuntu 14,04, php5, nginx 1.4),是因为不包括fastcgi_index,包括fastcgi_params,这次不包括(ubuntu 16.04, php7, nginx 1.10)。即使删除这些设置也不能解决这个问题。

nginx joomla php7
  • 1 个回答
  • 532 Views
Martin Hope
westexasman
Asked: 2012-07-13 10:03:44 +0800 CST

/var/www/ 中的 Apache 服务器 Joomla 文件

  • 0

好吧...我已经设置好我的服务器并且我有 4 个 Joomla!驻留在 /var/www/ 中的站点。根据这篇文章,每个站点目录及其下的文件都是 root:www-pub :

处理 /var/www 中 Apache 2 的用户 www-data 权限的最佳方式是什么?

我的用户 cdog 是 www-pub 的一部分,如上述帖子所述,经过更多研究后,umask 已正确设置。

问题是当我登录 Joomla! 后端...所有目录都是不可写的,这意味着我无法更新配置文件、编辑模板甚至安装/更新插件/扩展等。

乔姆拉!没有安装到这些目录中,目录被移动(通过 git 克隆)到服务器并执行目录的后续工作(如上面的链接中所述)。

所有目录和文件的权限如下(我只举了几个例子):

administrator rwxrwsr-x root:www-pub
cache         rwxrwsr-x root:www-pub
images        rwxrwsr-x root:www-pub
modules       rwxrwsr-x root:www-pub
tmp           rwxrwsr-x root:www-pub
index.php     rw-rw-r-- root:www-pub

Joomla 后端管理员无法访问我的目录/文件的原因是什么?

apache-2.2 file-permissions joomla
  • 1 个回答
  • 186 Views
Martin Hope
westexasman
Asked: 2012-07-13 08:28:00 +0800 CST

/var/www/ 中的 Apache 服务器文件

  • 0

好吧...我已经设置好我的服务器,并且我有 4 个站点驻留在 /var/www/ 中。根据这篇文章,每个站点目录及其下的文件都是 root:www-pub :

处理 /var/www 中 Apache 2 的用户 www-data 权限的最佳方式是什么?

我的用户 cdog 是 www-pub 的一部分,正如上面帖子所指示的那样,经过更多研究,我相信 umask 设置正确。

问题 1:在任何 /var/www/ 目录中创建新文件都会给我权限

cdog:www-pub -rw-r--r--

所有其他文件都是

root:www-pub -rw-rw-r--

我被引导相信(根据上面的帖子)创建的任何新文件都将在以后创建。

问题 2这些目录中的大多数,具有以下权限

drwxrwsr-x

是 Joomla 目录。登录到 Joomla 后端给了我一大堆不可写的目录,这不利于更新/安装扩展/插件等。

首先,为什么我的文件没有以正确的权限创建?其次,为什么 Joomla 目录不可写?

linux debian apache-2.2 file-permissions joomla
  • 3 个回答
  • 429 Views
Martin Hope
Jimmy
Asked: 2012-05-10 11:28:07 +0800 CST

允许访问 joomla 页面中的 ip'拒绝来自'

  • 1

我注意到我的 .htaccess 文件包含

<Files 403.shtml>
order allow,deny
allow from all
</Files>

这允许 403 错误页面 403.shtml 被在“拒绝来自”行上指定的地址查看。

我不想显示错误页面,而是想显示(支持 SEF 的 joomla)站点的主页(而不是任何其他页面)。我微弱的尝试是:

<directory />
order allow,deny
allow from all
<directory>

但这只会让服务器不高兴。

这样做的正确方法是什么?

.htaccess joomla
  • 2 个回答
  • 1055 Views
Martin Hope
coconut_pete
Asked: 2010-04-06 07:40:39 +0800 CST

如何审核 Linux 文件系统以查找在特定时间范围内更改或添加的文件?

  • 2

我们是一家网站设计/托管公司,运营着多个网站,有人能够将任意数据写入文件系统。我们怀疑他们仍然安装了一些脚本,并且需要一种方法来审核过去 10 天内更改或添加的任何内容。有没有我们可以运行的命令或脚本来做到这一点?

linux filesystems security joomla
  • 6 个回答
  • 1392 Views
Martin Hope
Joey Adams
Asked: 2010-02-17 10:04:48 +0800 CST

mod_login 到底在哪里?(Joomla)

  • 1

我是 Joomla 新手,我正在尝试建立一个网站以要求登录访问某些文章。只需将文章的访问级​​别设置为受限,它就会消失,而不是提示登录。我不知道如何制作登录页面,因为我找不到任何与 mod_login 相关的菜单项或文档。

我想设置至少一页要求登录访问。我从哪说起呢?

joomla
  • 1 个回答
  • 1762 Views
Martin Hope
Jeff Yates
Asked: 2009-07-28 05:32:37 +0800 CST

Joomla 是否有可以从 SVN 自动生成内容的插件?

  • 1

我正在考虑在我们的 Intranet 上使用 Joomla,我想知道是否有一个插件可以让页面从 SVN 文件(如 Word 文档)自动生成内容。我们在由 SVN 控制的文档中有许多流程和工作实践,与其将每一个转换为不同的格式,我宁愿将它们直接导入。此外,这样,我们不需要在每次 SVN 中的文件更改时更新 Joomla 站点。

那么,有没有办法做到这一点?

我环顾四周,但我发现的只是如何使用 SVN 控制 Joomla 站点开发,而不是如何链接 Joomla 页面以从 SVN 中控制的文件中自动生成内容。

如果这个问题有点幼稚,我深表歉意,这不是我的专业领域。

svn joomla
  • 2 个回答
  • 875 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve