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
    • 最新
    • 标签
主页 / user-90736

Billy Moon's questions

Martin Hope
Billy Moon
Asked: 2014-02-28 14:17:40 +0800 CST

Apache 作为所有文件的代理

  • 0

我正在尝试将 apache 配置为充当某些子域的代理。我几乎已经配置好了,但是有一个问题。

使用此配置,我设法让 www.mywebsite.com 正常服务(无代理/默认 apache 配置),同时通过代理为 localhost 端口 8080 提供 subdomain.mywebsite.com。我遇到的问题是请求到 index.html 以外的文件获取代理错误 502。

ServerAdmin [email protected]
ServerName subdomain.mywebsite.com

DocumentRoot "/opt/www/subdomain"

<Proxy *>
    Order allow,deny
    Allow from all
</Proxy>

ProxyPass / http://127.0.0.1:8080
ProxyPassReverse / http://127.0.0.1:8080

如何配置 apache 以通过代理服务所有文件?

apache-2.2
  • 1 个回答
  • 60 Views
Martin Hope
Billy Moon
Asked: 2012-10-04 11:00:41 +0800 CST

Apache 无法在端口 8082 上工作

  • 0

我刚才建立了一个站点在端口 8080 上工作,并复制配置,仅更改根目录和端口,我希望在端口 8082 上提供另一个站点,但它失败了:Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.

这是所有相关的配置文件,如果有遗漏的,我可以发布更多。

sysadmin@cpms-hub:~$ cat /etc/apache2/sites-enabled/default 
<VirtualHost *:8080>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/stocker/app/webroot
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>

</VirtualHost>
sysadmin@cpms-hub:~$ cat /etc/apache2/sites-enabled/website 
<VirtualHost *:8082>

        ServerAdmin [email protected]

        DocumentRoot /var/www/website
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>

</VirtualHost>
sysadmin@cpms-hub:~$ ls -la /etc/apache2/sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 Oct  3 15:32 .
drwxr-xr-x 7 root root 4096 May  9 16:12 ..
lrwxrwxrwx 1 root root   26 May  9 16:12 000-default -> ../sites-available/default
lrwxrwxrwx 1 root root   36 Oct  3 15:30 default -> /etc/apache2/sites-available/default
lrwxrwxrwx 1 root root   22 Aug 15 23:41 hub -> ../sites-available/hub
lrwxrwxrwx 1 root root   36 Oct  3 15:32 website -> /etc/apache2/sites-available/website
sysadmin@cpms-hub:~$ ls -la /etc/apache2/sites-available/
total 28
drwxr-xr-x 2 root root 4096 Oct  3 15:29 .
drwxr-xr-x 7 root root 4096 May  9 16:12 ..
-rw-r--r-- 1 root root  257 Aug 15 23:18 default
-rw-r--r-- 1 root root 7469 Feb  7  2012 default-ssl
-rw-r--r-- 1 root root  170 Aug 15 23:30 hub
-rw-r--r-- 1 root root  176 Oct  3 15:44 website
sysadmin@cpms-hub:~$
apache-2.2
  • 1 个回答
  • 2286 Views
Martin Hope
Billy Moon
Asked: 2012-09-23 14:33:48 +0800 CST

为什么我的服务器上运行了这么多 sshd 实例?

  • 6
8146 root      15   0 69432 3224 2500 S  1.3  1.2   0:00.04 sshd                                                                                                                    
    1 root      15   0 23560 1696 1356 S  0.0  0.6   0:01.25 init                                                                                                                    
 1167 root      18   0 14764 1132  932 S  0.0  0.4   0:00.01 xinetd                                                                                                                  
 1168 daemon    18   0 16692  452  292 S  0.0  0.2   0:00.00 atd                                                                                                                     
 1169 root      15   0 18892 1056  820 S  0.0  0.4   0:00.51 cron                                                                                                                    
 1197 root      15   0 49428 2696 2132 S  0.0  1.0   0:06.34 sshd                                                                                                                    
 1215 syslog    15   0 12540  792  616 S  0.0  0.3   0:02.37 syslogd                                                                                                                 
 1284 root      18   0 68268 2468  792 S  0.0  0.9   0:01.32 sendmail-mta                                                                                                            
 1980 root      16   0 70768 3328 2584 S  0.0  1.3   0:00.03 sshd                                                                                                                    
 1994 sysadmin  15   0 70768 1648  896 S  0.0  0.6   0:00.08 sshd                                                                                                                    
 1997 sysadmin  16   0 18092 2148 1540 S  0.0  0.8   0:00.03 bash                                                                                                                    
 8020 root      16   0 70768 3328 2584 S  0.0  1.3   0:00.04 sshd                                                                                                                    
 8036 sysadmin  15   0 70768 1660  896 R  0.0  0.6   0:00.01 sshd                                                                                                                    
 8037 sysadmin  15   0 18092 2124 1520 S  0.0  0.8   0:00.01 bash                                                                                                                    
 8065 sysadmin  15   0 19184 1312 1060 R  0.0  0.5   0:00.06 top                                                                                                                     

我在 openvz 虚拟主机上,因此此处报告的内存使用情况top来自整台机器。s 占用了我的sshd大部分可用内存 - 为什么有这么多?我需要它们吗?

ubuntu
  • 1 个回答
  • 5902 Views
Martin Hope
Billy Moon
Asked: 2012-09-14 05:51:31 +0800 CST

从干净的 ubuntu 安装下载单个文件

  • 2

互联网上是否有资源,我可以在其中下载 ubuntu 服务器安装所需的单个文件?

/etc/grub.d/00_header在这种情况下,我需要Ubuntu 服务器 12.04的干净版本。有时我想为特定的 linux 版本获取文件的干净版本。

除了在其他地方再次安装 ubuntu 并从那里复制文件之外,我将如何获取我需要的文件?


我做了apt-get upgrade一个新版本的 grub 替换有问题的版本的希望,并得到了这个错误。据我了解,更新后的 grub 应该替换旧的(我选择使用 /etc/defualt/grub 的包维护者版本),因此解析后出现的错误与新的 grub 版本有关,而不是我的本地版本版本。那是对的吗?

Replacing config file /etc/default/grub with new version                                                                                                                             
/usr/sbin/grub-setup: warn: Sector 32 is already in use by FlexNet; avoiding it.  This software may cause boot or other problems in future.  Please ask its authors not to store data in the boot track.
/usr/sbin/grub-setup: warn: Sector 33 is already in use by FlexNet; avoiding it.  This software may cause boot or other problems in future.  Please ask its authors not to store data in the boot track.
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-29-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-29-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-25-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-25-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 32
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
ubuntu
  • 2 个回答
  • 435 Views
Martin Hope
Billy Moon
Asked: 2012-08-09 06:17:34 +0800 CST

如何阻止人们使用我的域发送垃圾邮件?[复制]

  • 111
这个问题在这里已经有了答案:
打击垃圾邮件 - 作为电子邮件管理员、域所有者或用户,我可以做什么? (6 个答案)
8 年前关闭。

我收到 Mailer Daemon 消息说某些电子邮件发送失败。我的域是itaccess.org由 Google 应用程序管理的。有什么方法可以确定谁在从我的域发送电子邮件,以及他们是如何发送电子邮件的,而无需我为他们创建帐户?

Delivered-To: [email protected]
Received: by 10.142.152.34 with SMTP id z34csp12042wfd;
        Wed, 8 Aug 2012 07:12:46 -0700 (PDT)
Received: by 10.152.112.34 with SMTP id in2mr18229790lab.6.1344435165782;
        Wed, 08 Aug 2012 07:12:45 -0700 (PDT)
Return-Path: <[email protected]>
Received: from smtp-gw.fsdata.se (smtp-gw.fsdata.se. [195.35.82.145])
        by mx.google.com with ESMTP id b9si24888989lbg.77.2012.08.08.07.12.44;
        Wed, 08 Aug 2012 07:12:45 -0700 (PDT)
Received-SPF: neutral (google.com: 195.35.82.145 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=195.35.82.145;
Authentication-Results: mx.google.com; spf=neutral (google.com: 195.35.82.145 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]
Received: from www20.aname.net (www20.aname.net [89.221.250.20])
    by smtp-gw.fsdata.se (8.14.3/8.13.8) with ESMTP id q78EChia020085
    for <[email protected]>; Wed, 8 Aug 2012 16:12:43 +0200
Received: from www20.aname.net (localhost [127.0.0.1])
    by www20.aname.net (8.14.3/8.14.3) with ESMTP id q78ECgQ1013882
    for <[email protected]>; Wed, 8 Aug 2012 16:12:42 +0200
Received: (from whao@localhost)
    by www20.aname.net (8.14.3/8.12.0/Submit) id q78ECgKn013879;
    Wed, 8 Aug 2012 16:12:42 +0200
Date: Wed, 8 Aug 2012 16:12:42 +0200
Message-Id: <[email protected]>
To: [email protected]
References: <20120808171231.CAC5128A79D815BC08430@USER-PC>
In-Reply-To: <20120808171231.CAC5128A79D815BC08430@USER-PC>
X-Loop: [email protected]
From: [email protected]
Subject: whao.se:  kontot avstängt - account closed
X-FS-SpamAssassinScore: 1.8
X-FS-SpamAssassinRules: ALL_TRUSTED,DCC_CHECK,FRT_CONTACT,SUBJECT_NEEDS_ENCODING

    Detta är ett automatiskt svar från F S Data - http://www.fsdata.se

    Kontot för domänen whao.se är tillsvidare avstängt.
    För mer information, kontakta [email protected]

    Mvh,
    /F S Data

    -----

  This is an automatic reply from F S Data - http://www.fsdata.se

  The domain account "whao.se" is closed.
  For further information, please contact [email protected]

  Best regards,
  /F S Data
spam
  • 9 个回答
  • 136996 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