processmaker
我正在嘗試在本機電腦上安裝,我建立/opt
目錄並將此 php 腳本貼到其中,而不是我應該在我的 ubuntu 作業系統上定義虛擬主機,為了執行此操作,我將此 apache 配置放入/etc/apache2/sites-available/
名為pmos.conf 的pmos.conf中想要使用127.0.0.1:81
開放/opt/processmaker/workflow/public_html
路徑
<VirtualHost *:81>
ServerAdmin [email protected]
ServerName processmaker.dev
ServerAlias www.processmaker.dev
DocumentRoot /opt/processmaker/workflow/public_html
DirectoryIndex index.html index.php
<Directory "/opt/processmaker/workflow/public_html">
AddDefaultCharset UTF-8
AllowOverRide none
Options FollowSymlinks
Order allow,deny
Allow from all
RewriteEngine on
RewriteRule ^.*/(.*)$ sysGeneric.php [NC,L]
AddOutputFilterByType DEFLATE text/html
</Directory>
</VirtualHost>
內容/etc/hosts
是:
127.0.0.1 localhost
127.0.1.1 pishguy
127.0.0.1 processmaker.dev
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
重新啟動阿帕契後
sudo systemctl reload apache2
我在 shell 上沒有收到任何錯誤,但127.0.0.1:81
在 FireFox 上輸入時收到此錯誤:
Unable to connect
Firefox can’t establish a connection to the server at 127.0.0.1:81.
答案1
看起來 Apache 沒有監聽 81 連接埠。
嘗試,而不是reload
處理restart
apache2
:
`systemctl restart apache2`
根據評論編輯
您應該添加該指令
Listen 81
也到/etc/apache2/ports.conf
(或將其添加到您的pmos.conf
之前
<VirtualHost *:81>
)。