Apache2 and lucee within ubuntu

Hi,

I set up my first ubuntu host for lucee … (I was using windows and railo
for now), and I don’t get how to have the port 80 to respond !

everything works perfectly on port 8888
I got apache2 listening on port 80

I setup the apache like that :

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and
port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request’s Host: header
to
# match this virtual host. For the default virtual host (this file)
this
# value is not decisive as it is used as a last resort host
regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    # Available loglevels: trace8, ..., trace1, debug, info, notice, 

warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example 

the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with “a2disconf”.
#Include conf-available/serve-cgi-bin.conf

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I am assuming that I need to change something here, but I have no clue on
what … and cannot find info on the lucee site …

Can you point me in the right direction … ?

Thanks !

Stéphane

Ubuntu is a hot mess as it does not conform to enterprise standards.

the real question is, are you trying to get apache to respond and then
connect to the request on lucee or do you just want it to run on port 80?On Thursday, April 9, 2015 at 11:16:22 AM UTC-4, Stéphane MERLE wrote:

Hi,

I set up my first ubuntu host for lucee … (I was using windows and railo
for now), and I don’t get how to have the port 80 to respond !

everything works perfectly on port 8888
I got apache2 listening on port 80

I setup the apache like that :

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and
port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request’s Host:
header to
# match this virtual host. For the default virtual host (this
file) this
# value is not decisive as it is used as a last resort host
regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    # Available loglevels: trace8, ..., trace1, debug, info, notice, 

warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example 

the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with “a2disconf”.
#Include conf-available/serve-cgi-bin.conf

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I am assuming that I need to change something here, but I have no clue on
what … and cannot find info on the lucee site …

Can you point me in the right direction … ?

Thanks !

Stéphane

Prozesses on port 80 on *nix Systems needs specials privileges. Try to run
the java webcontainer(tomcat) under root rights.

I think I need to tell somewhere to apache that it need to proxy to tomcat
on 8888 …

Or I could just change server.xml to use 80 instead of 8888 but I thought
that apache was better to handle the front-end ?

StéphaneLe jeudi 9 avril 2015 17:21:15 UTC+2, Amarius von Tres a écrit :

Am Donnerstag, 9. April 2015 17:16:22 UTC+2 schrieb Stéphane MERLE:

Hi,

I set up my first ubuntu host for lucee … (I was using windows and
railo for now), and I don’t get how to have the port 80 to respond !

everything works perfectly on port 8888
I got apache2 listening on port 80

I setup the apache like that :

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and
port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the
ServerName
# specifies what hostname must appear in the request’s Host:
header to
# match this virtual host. For the default virtual host (this
file) this
# value is not decisive as it is used as a last resort host
regardless.
# However, you must set it for any further virtual host
explicitly.
#ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    # Available loglevels: trace8, ..., trace1, debug, info, notice, 

warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For 

example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with “a2disconf”.
#Include conf-available/serve-cgi-bin.conf

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I am assuming that I need to change something here, but I have no clue on
what … and cannot find info on the lucee site …

Can you point me in the right direction … ?

Thanks !

Stéphane

Prozesses on port 80 on *nix Systems needs specials privileges. Try to run
the java webcontainer(tomcat) under root rights.Am Donnerstag, 9. April 2015 17:16:22 UTC+2 schrieb Stéphane MERLE:

Hi,

I set up my first ubuntu host for lucee … (I was using windows and railo
for now), and I don’t get how to have the port 80 to respond !

everything works perfectly on port 8888
I got apache2 listening on port 80

I setup the apache like that :

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and
port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request’s Host:
header to
# match this virtual host. For the default virtual host (this
file) this
# value is not decisive as it is used as a last resort host
regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    # Available loglevels: trace8, ..., trace1, debug, info, notice, 

warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example 

the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with “a2disconf”.
#Include conf-available/serve-cgi-bin.conf

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I am assuming that I need to change something here, but I have no clue on
what … and cannot find info on the lucee site …

Can you point me in the right direction … ?

Thanks !

Stéphane

Ubuntu is a hot mess as it does not conform to enterprise standards.

the real question is, are you trying to get apache to respond and then
connect to the request on lucee or do you just want it to run on port 80?

euuu I thought I had no choice but to get apache to answer on port 80 and
to forward request up to lucee … (like IIS on windows)
I don’t really care … I will probably set a pair of nginx as LoadBalancer
in front and forward the requests to 2 fronts with lucee (on port 80) so I
can easely forget apache if needed…

StéphaneLe jeudi 9 avril 2015 21:11:14 UTC+2, Terry Whitney a écrit :

On Thursday, April 9, 2015 at 11:16:22 AM UTC-4, Stéphane MERLE wrote:

Hi,

I set up my first ubuntu host for lucee … (I was using windows and
railo for now), and I don’t get how to have the port 80 to respond !

everything works perfectly on port 8888
I got apache2 listening on port 80

I setup the apache like that :

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and
port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the
ServerName
# specifies what hostname must appear in the request’s Host:
header to
# match this virtual host. For the default virtual host (this
file) this
# value is not decisive as it is used as a last resort host
regardless.
# However, you must set it for any further virtual host
explicitly.
#ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html

    # Available loglevels: trace8, ..., trace1, debug, info, notice, 

warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For 

example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with “a2disconf”.
#Include conf-available/serve-cgi-bin.conf

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I am assuming that I need to change something here, but I have no clue on
what … and cannot find info on the lucee site …

Can you point me in the right direction … ?

Thanks !

Stéphane