惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - 夜渡寒潭

example windows7 64位下安装apache和php 一个js,记录方便查询。 用了锚的时候,有的层被覆盖了。 日,在ie10下面hover里不能控制table 在实现tab的时候,margin-bottom:-1px无效的问题 javascript中,在一个类里attache的event事件中,如果调用类的成员变量和方法 javascript定义类,并实例化的各类之间成员变量不干扰。 php里www用户建立的文件ftp用户无法删除的情况 用C++实现读取windows日志并用zlib压缩后通过jwsmtp邮件发送出去. 再见,我的念青五笔。 如何解决在IE6下不自动换行的问题 重庆旅游网新版上线,欢迎测试! 祭5.12地震死难者文[转] __cdecl __fastcall与 __stdcall的说明(转) Windows 应用 Linux手记 - 夜渡寒潭 - 博客园 VC++中控制控件台字体颜色(转) - 夜渡寒潭 - 博客园 在Windows下编译OpenSSL
如何在Linux下增加Apache的虚拟主机
夜渡寒潭 · 2011-01-31 · via 博客园 - 夜渡寒潭

前段时间为了上百科全说网站,接连的换了三个空间商,这些空间都有问题,最后换了一个linux的vps,不想用系统自带的webmin(因为搞了半天没有用得起),所以都自己配置吧。

修改root密码,增加新的用户,删除没有用的用户,增加ftp用户,这些是没有什么问题的,只是在最后增加Apache虚拟主机的时候被卡了半天,因为和windows的有点儿不一样,所以在这里记下了。

错误的配置:

NameVirtualHost your.domain.com:80

<VirtualHost your.domain.com:80>

    ServerName your.domain.com

    DocumentRoot /var/html/your.domain.com

    <Directory "/var/html/your.domain.com">

        Options FollowSymLinks

        AllowOverride All

        Order allow,deny

        Allow from all

    </Directory>

</VirtualHost>

正确的配置

NameVirtualHost *:80 

<VirtualHost *:80>

    ServerName your.domain.com

    DocumentRoot /var/html/your.domain.com

    <Directory "/var/html/your.domain.com">

        Options FollowSymLinks

        AllowOverride All

        Order allow,deny

        Allow from all

    </Directory>

</VirtualHost>

注意标红的地方