我想知道是否可以在 AWS (EKS) 集群中混合节点实例类型。我想托管需要更多资源的东西并将其添加到集群中。
Dark Star1's questions
我正在尝试在代理发生之前重写部分 URL ( https://myfirstdomain.com/lool/https:/alf.mydomain.com/service/wopi/files/uuid?query_params
),并且我的默认 SSL vhost 中有这个相关部分:
<IfModule mod_rewrite.c>
RewriteEngine On
LogLevel debug rewrite:trace3
RewriteRule ^lool/https:/alf.mydomain.com\/(.*) lool/https://alf.mydomain.com/$1 [QSA,NE]
</IfModule>
ProxyPass / https://localhost:2323/
ProxyPassReverse / https://localhost:2323/
我在重写日志中看到了这一点:
applying pattern '^lool/https:/alf.mydomain.com' to uri '/lool/https:/alf.mydomain.com/service/wopi/files/uuid
但是在接收到这个的服务上,我看到 URL 没有被重写。对于我做错了什么的任何线索,我将不胜感激。我实际上是在尝试/
在我无法访问的基础架构中的某处添加已被代理服务器删除的额外内容。
编辑: 在后端 WOPI 服务的日志中,它看到请求 URL 未修改:
Request from 127.0.0.1:42035: GET /lool/https:/alf.mydomain.com/service/wopi/files/uuid
我正在尝试使用 nano 编辑文件,每当我打开文件进行编辑时,它都会给我以下消息:
File /path/to/file is being edited (by root with nano 2.5.3. PID 12345); continue?
但是,当我 grep pid 或列出所有进程时,我无法在正在运行的进程列表中找到进程 ID。我不确定如何解决这个问题。我在 ubuntu 16.04 虚拟机上。
我想知道在代理上启用 SSL 是否足够,但在被代理的服务上却不行。当通讯应该是 https 时,会不会有来自外部(在客户端)的问题?
我已经四处搜索,但到目前为止还没有找到可能的解决方案。我有一个正在进行的扫描,我认为它会在某个时间完成,但不幸的是它没有。所以我想知道是否有办法检查这个正在进行的进度的扫描进度。
我正在尝试重写以我的站点为目标的域 url,以便将所有域名都重写为 www.example.com 并具有以下配置:
我的网站块
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name _;
rewrite ^ $scheme://www.example.com$request_uri permanent;
location / {
# Allow for large file uploads
client_max_body_size 0;
proxy_http_version 1.1;
proxy_pass http://mysite;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}
tomcat 服务器块
server {
listen 80;
root /opt/site2/www;
index index.html index.htm;
# Redirecto root requests to Share
rewrite ^/$ /share;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
}
# redirect server error pages to the static page /50x.html
error_page 502 503 504 /maintenance.html;
location = /maintenance.html {
root /opt/site2/www;
}
location /share {
# Allow for large file uploads
client_max_body_size 0;
# Proxy all the requests to Tomcat
proxy_http_version 1.1;
#proxy_buffering off;
proxy_pass http://backend;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Server $host;
}
}
在服务器块中,但我收到“重定向过多”错误。
我有一个“包罗万象的证书”,我想在驻留在另一个 VM 中的另一台服务器上使用它。我怎样才能做到这一点?我还没有看到任何其他解释的文档。
我有以下设置(从我的 postconf -n 输出中获取)
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
maximal_backoff_time = 8000s
maximal_queue_lifetime = 7d
minimal_backoff_time = 1000s
mydestination = $mydomain, localhost.$mydomain, localhost
myhostname = //redacted
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_helo_timeout = 60s
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_hard_error_limit = 12
smtpd_recipient_limit = 10
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_soft_error_limit = 3
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_domainaliases_maps.cf
virtual_gid_maps = static:8
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf, mysql:/etc/postfix/mysql_virtual_mailbox_domainaliases_maps.cf
virtual_transport = virtual
virtual_uid_maps = static:5000
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_overquota_bounce=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_maps=mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message=Sorry, the your maildir has overdrawn your diskspace quota, please free up some of spaces of your mailbox try again.
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_create_maildirsize=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_extended=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_override=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: smtpd_relay_restrictions=reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit
我不熟悉邮件服务器配置,但据我了解,从这条消息中可以看出:status=deferred(邮件传输不可用)这意味着它无法传递到 LDA。我在带有 dovecot 2.0.19 的 ubuntu 12.04 上使用 postifx 2.9.6
编辑:邮件到达日志
Jun 12 12:18:59 mailserve postfix/smtpd[1215]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jun 12 12:19:00 mailserve postfix/smtpd[1215]: connect from redacted
Jun 12 12:19:00 mailserve postfix/smtpd[1215]: 6788268E01E9: client=redacted
Jun 12 12:19:00 mailserve postfix/cleanup[1196]: 6788268E01E9: message-id=<[email protected]>
Jun 12 12:19:00 mailserve postfix/qmgr[678]: 6788268E01E9: from=<redacted>, size=17120, nrcpt=1 (queue active)
Jun 12 12:19:00 mailserve postfix/qmgr[678]: warning: connect to transport private/smtp-amavis: No such file or directory
Jun 12 12:19:00 mailserve postfix/smtpd[1215]: disconnect from redacted
Jun 12 12:19:01 mailserve postfix/error[1223]: 6788268E01E9: to=<redacted>, relay=none, delay=0.75, delays=0.38/0/0/0.36, dsn=4.3.0, status=deferred (mail transport unavailable)
我正在尝试将数据从 postgre 数据库迁移到 mysql (mariaDB) 并且想知道是否可以从 pgsql 转储恢复 mysql 中的数据库?
我将 apache 设置为 tomcat 的代理,但是当我定位页面时出现以下错误。我有时会得到一个空白页或 503:
[错误]
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(2) failed in child 29611 for worker proxy:reverse
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(1) failed in child 29611 for worker https://localhost:8443/
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(0) failed in child 29611 for worker http://localhost:8080/
我在虚拟机上配置了两个虚拟主机,如下所示:
[http 主机]
<VirtualHost *:80>
ServerName www.mysite.net
ServerAlias mysite.net
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/ retry=0
ProxyPassReverse / http://localhost:8080/ retry=0
</VirtualHost>
[SSL 虚拟主机]
<VirtualHost *:443>
ServerName www.mysite.net
ServerAlias mysite.net
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
SSLEngine on
SSLProxyEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / https://localhost:8443/ retry=0
ProxyPassReverse / https://localhost:8443/ retry=0
</VirtualHost>
我的系统详细信息是: Apache/2.2.22 (Ubuntu) mod_jk/1.2.32 mod_ssl/2.2.22 OpenSSL/1.0.1 mod proxy_http 也已启用。
我有以下 ldif 文件,我试图将其加载到 openLDAP 中:
正在为 Monas 项目创建自定义模式
dn: cn=testSchemas,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: testSchemas
olcAttributeTypes ( 1.3.6.1.4.1.4203.666.1.90
NAME 'competence'
DESC 'The field an individual is qualified'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubStringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
olcAttributeTypes ( 1.3.6.1.4.1.4203.666.1.91
NAME 'spokenLanguage'
DESC 'The language spoken by a person.'
SUP preferredLanguage
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubStringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
olcObjectClasses ( 1.3.6.1.4.1.4203.666.2012.1
NAME 'inetOrgTestPerson'
DESC 'An extension of the inetOrgPerson objectClass to add some additional attributes'
SUP inetOrgPerson
STRUCTURAL
MUST competence
MAY spokenLanguage )
我不断收到错误消息:ldapadd: invalid format (line 4) entry: cn=testSchemas,cn=schema,cn=config"我一辈子都弄不明白哪里出了问题。我在 ubuntu 12.04 上使用 openldap 2.4.28
编辑:修复丢失的“:”的语法错误后,我设法添加了对象和属性(或者我认为)但是当我执行搜索时我看不到它们我得到错误:
ldap_modify: Type or value exists (20)
additional info: modify/add: olcAttributeTypes: value #0 already exists
当我尝试再次添加对象时,这意味着它们在数据库中,但搜索中没有任何结果。
我最近通过 apache solr typo3 社区的安装脚本安装了 tomcat,并在过去 3 天里试图弄清楚为什么它不起作用,直到偶然我注意到当我通过“ lsof -i
”查询监听端口的进程时,它绑定到 ipv6 协议。
我到处搜索,大多数人说0.0.0.0
在 tomcat 连接器中设置地址可以解决这个问题,其他人说设置JAVA_OPTS="-Djava.net.preferIPv4Stack=true"
。
我试过前者不起作用,但后者我不确定把它放在哪里。我在某处读到的一种解决方案建议将其放入,setenv.sh
但我无法在我的 tomcat 安装中找到该文件。目前,我将不胜感激。
tomcat版本为6.x,操作系统为ubuntu 11.10。
谢谢