Tag: 的Apache2

如何使用Ubuntu 12.04设置“基于名称”的虚拟主机?

如何使用Ubuntu 12.04设置“基于名称”的虚拟主机? 我已按照https://help.ubuntu.com/12.04/serverguide/httpd.html#http-configuration上的说明进行操作。 我做了以下…… cp default newsite 在newsite中将“/ var / www”替换为“/ var / www / newsite” 将“ServerName newsite.example.com”添加到newsite 经过一些研究,我找到了一个博客条目,声明我需要使用a2dissite default禁用默认网站。 在我这样做之后,它起作用了。 那是对的吗? 这在Ubuntu服务器指南中从未提及过。 该指南还包括这一行…… “默认虚拟主机没有指定ServerName指令,因此它将响应与另一个虚拟主机中的ServerName指令不匹配的所有请求。” 这似乎意味着默认网站和其他网站都可以共存。 我正在运行12.04 Server的全新安装,并且每次进行调整时都重新加载了apache配置。 总结…在/ etc / apache2 / sites-available(添加了ServerName指令的“default”文件的更改副本)和/ etc / apache2 / sites-enabled下的相应符号链接后添加新文件后,是是否需要禁用或重命名默认站点符号链接以使新站点正常运行? 下面给出的文档和一个答案似乎推断没有必要这样做,但如果是这样,我做错了什么? 使用下面的配置,当尝试访问newsite.example.com时,我得到默认站点。 / etc / apache2 / sites-available $ cat default ServerAdmin webmaster@localhost DocumentRoot /var/www Options […]

Apache,问题无法启动LSB:Apache2 Web服务器

我使用Ubuntu 16.02。 当我尝试sudo service apache2 restart ,它说: Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details. 然后我输入: journalctl -xe ,并请求: – – 单位apache2.service已经开始启动。 1月11日02:30:46 aleksandr-VirtualBox apache2 [8177]:/etc/init.d/apache2:1:/ etc / apache2 / envvars:envvars:not found 1月11日02:30:46 aleksandr-VirtualBox apache2 [8177]:/etc/init.d/apache2:49:/ etc / apache2 / envvars:envvars:not found […]

如何让apache运行cgi而不是显示文本?

我正在尝试在ubuntu 11.04上安装bugzilla 4 我在httpd.conf中添加了以下内容 AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride Limit 但是当我转到URL时,apache显示index.cgi的文本而不是执行脚本。 知道怎么解决吗?

无法重启Apache 2

我正在尝试重新启动我的Apache,但它不起作用。 这是错误: Restarting web server apache2 AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message 我需要一些帮助。 谢谢

如何为Apache服务器打开特定端口?

如何在linux下为我的apache服务器打开特定端口? 我正在尝试与在线游戏建立连接,该游戏发送消息并接收到特定端口。 我想让我的apache server / linux机器监听那个特定的端口。 底线,能够从/到该端口接收/发送数据

在ubuntu 12.04 LTS上将Apache升级到2.2.23

我们在运行Ubuntu 12.04 LTS和Apache 2.2.22的服务器上进行了PCI扫描。 扫描报告了apache 2.2.22(LD_LIBRARY_PATH漏洞中的Apache HTTP Server零长度目录名称)中的漏洞。报告声明将版本升级到2.2.23或2.2.24的最新稳定版本。 如何升级到2.2.23以修复漏洞,或者是否有可修复此问题的补丁,如果是,您可以告诉我如何修补漏洞。

我总是得到“没有这样的文件或目录:apache2:无法打开错误日志文件/ etc / apache2 / $ apache_log_dir /error.log”我怎么解决这个问题

我正在使用Ubuntu Studio 12.04,当我尝试启动apache2时,收到此错误消息: No such file or directory: apache2: could not open error log file /etc/apache2/$ apache_log_dir /error.log 这个测量,我应该有一个这样的路径/etc/apache2/var/log/apache2/但是在envvars中,log dir被定义为/var/log/apache2$SUFFIX而不是/etc/apache2/ 我怎样才能解决这个问题。

AH00015:无法打开日志操作“启动”失败。 在ubuntu 14.04

我正在尝试安装apache2,我遇到了这个问题。给我一些解决方案 重新启动Web服务器apache2会出错: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down […]

重启Apache 2的问题

我正在尝试重启Apache 2: sudo service apache2 restart 但得到以下错误: * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message 我试图改变 sudo gedit /etc/apache2/httpd.conf 出现一个空白文件,我添加了这个: ServerName localhost 但是这个错误并没有消失! 我该如何解决这个问题?

我需要一个文件:/ etc / apache2 / sites-available / default-ssl

我需要该文件的( /etc/apache2/sites-available/default-ssl )内容或一种方法来取回它。 我已经把它删了。