I have setup my apache conf file, as per instructions here:
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-7
I am running RHEL 7.
I added:
IncludeOptional sites-enabled/*.conf
My sites-enabled folder has a fusio.conf file as below:
<VirtualHost *:8080>
ServerName server.company.net
DocumentRoot /var/www/html/fusio/public
<Directory /var/www/html/fusio/public>
Options FollowSymLinks
AllowOverride All
Require all granted
# rewrite
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php/$1 [L]
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
</Directory>
# log
LogLevel warn
# ErrorLog ${APACHE_LOG_DIR}/fusio.error.log
# CustomLog ${APACHE_LOG_DIR}/fusio.access.log combined
</VirtualHost>
~
However when I connect to server.mycompany.net:8080, I do not get a response. This site can’t be reached
I can connect directly to server.mycompany.net and see the files in the fusio folder, but what am I missing?
I have added Listed 8080 to the conf file.
2
Answers
You may not have opened the port on your firewall (probably
iptables
orfirewalld
).From the server itself, perform the following:
If you get a response, that means apache is running, but your firewall to the internet is not letting it through on port 8080.
firewalld
Check to see if you are running
firewalld
If the response is
running
, let’s add itiptables
Check to see if you are using
iptables
(iptables are kernel modifications, so there is no "service" that is running. if rules are showing, they are enabled.)If you see rules, then lets add another.
Check /etc/apache2/ports.conf. You need to specify ports there.
Listen 80
Listen 8080
……