将Linux的apacheconfiguration指令更改为windows的configuration

我被给了一个关于设置apache2和php与一个叫做liferay的java CMS一起工作的教程。 问题是这些指令是为linux编写的。 有人可以帮我改变这些工作与Windows环境?

ssh into the server. cd /var/www/ sudo mkdir directory name sudo nano (or vim if you prefer) index.php Enter this into the text editor. <?php echo "Hello World!"; ?> cd /etc/apache2/sites-enabled/ sudo nano (or vim if that's your preference) 000-default Make sure the first item on the page looks like this... NameVirtualHost *:80 Make sure the <VirtualHost> directive looks like this... <VirtualHost *:80> Save and exit the file. sudo nano liferay.conf Make sure the <VirtualHosts> directive looks like this... 

 Add an alias inside the <VirtualHost> tag. Alias /apps "/var/www/apps" Add a <Directory> directive inside the <VirtualHost> tag. It should look like this... <Directory "/apps/"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all ProxyPass [http://localhost:80/apps/] </Directory> Save and exit the file. Restart the server /etc/init.d/apache2 restart 

像启用目录站点的东西不存在等,所以在这里很难过。

非常感谢!

Jonesy

您正在查找的文件是httpd.conf,可能位于apache安装的“conf”目录中。 你也可以检查httpd-vhost.conf到“conf / extra”目录。