You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Arnold <ca...@electrichendrix.com> on 2015/01/18 01:15:09 UTC
[users@httpd] RE: Apache 2.4 Problems
>Apache 2.4 on sles 12. I understand this version is way >different from 2.2 but I can't get 2.4 to even listen on 80 or >443. Can anyone help me with this? The logs only shows >me when I start and stop Apache. Btw, I am using >apache2ctl stop/start as rcapache2 doesn't seem to >stop/start and etc/init.d/apache2 stop/start is not even in >that path........
Here is my httpd.conf:
# run under this user/group id
Include /etc/apache2/uid.conf
# - how many server processes to start (server pool regulation)
# - usage of KeepAlive
Include /etc/apache2/server-tuning.conf
ErrorLog /var/log/apache2/error_log
# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf
# IP addresses / ports to listen on
Include /etc/apache2/listen.conf
# predefined logging formats
Include /etc/apache2/mod_log_config.conf
# generated from global settings in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/global.conf
# optional mod_status, mod_info
Include /etc/apache2/mod_status.conf
Include /etc/apache2/mod_info.conf
Include /etc/apache2/mod_reqtimeout.conf
# optional cookie-based user tracking
# read the documentation before using it!!
Include /etc/apache2/mod_usertrack.conf
# configuration of server-generated directory listings
Include /etc/apache2/mod_autoindex-defaults.conf
# associate MIME types with filename extensions
TypesConfig /etc/apache2/mime.types
Include /etc/apache2/mod_mime-defaults.conf
# set up (customizable) error responses
Include /etc/apache2/errors.conf
# global (server-wide) SSL configuration, that is not specific to
# any virtual host
Include /etc/apache2/ssl-global.conf
# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride None
# See /usr/share/doc/packages/apache2/README-access_compat.txt
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
# See /usr/share/doc/packages/apache2/README-access_compat.txt
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
</Files>
# List of resources to look for when the client requests a directory
DirectoryIndex index.html index.html.var index.php
Include /etc/apache2/default-server.conf
# Another way to include your own files
#
# The file below is generated from /etc/sysconfig/apache2,
# include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
# APACHE_CONF_INCLUDE_DIRS
Include /etc/apache2/sysconfig.d/include.conf
IncludeOptional /etc/apache2/vhosts.d/*.conf
Here is the listen.conf:
Listen 80
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
</IfModule>
</IfDefine>
</IfDefine>
Here is a vhost conf:
<VirtualHost *:80>
ServerAdmin email@domain.tld
ServerName domain.tld
ServerAlias www.domain.tld
DocumentRoot /srv/www/htdocs/sites/domain
# if not specified, the global error log is used
ErrorLog /var/log/apache2/teknerds.net-error_log
CustomLog /var/log/apache2/teknerds.net-access_log combined
# don't loose time with IP address lookups
HostnameLookups Off
# needed for named virtual hosts
UseCanonicalName Off
# configures the footer on server-generated documents
ServerSignature On
ScriptAlias /cgi-bin/ "/srv/www/vhosts/dummy-host.example.com/cgi-bin/"
# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have one, and where ScriptAlias points to.
#
<Directory "/srv/www/vhosts/dummy-host.example.com/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
</Directory>
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/srv/www/htdocs/sites/domain">
Options Indexes FollowSymLinks
AllowOverride None
# See /usr/share/doc/packages/apache2/README-access_compat.txt
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
</Directory>
The error from chrome is connection rejected. Netstat -nlp does not show listening on 80 or 443. I have a phpinfo.php file on the doc root, a html file on the doc root and a website in the above location; can not get to any of these places
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.4 Problems
Posted by Daniel <df...@gmail.com>.
David's config seem to poin here:
# IP addresses / ports to listen on
Include /etc/apache2/listen.conf
El Sun Jan 18 2015 at 3:27:38 AM, David Grant (<dm...@infinitydigital.com>)
escribió:
> for me, it’s /etc/apache2
>
> And that’s on several machines.
>
>
> On Jan 17, 2015, at 6:22 PM, Chris Arnold <ca...@electrichendrix.com>
> wrote:
>
> >
> >> On Jan 17, 2015, at 8:43 PM, David Grant <dm...@infinitydigital.com>
> wrote:
> >>
> >> Take a look at ports.conf.
> >>
> >> I think you’ll find what you’re looking for in that file, and then
> amend https.conf accordingly.
> >>
> >> Hope that helps
> >
> > Where exactly is ports.conf located? I searched my file system and could
> not find it
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] Apache 2.4 Problems
Posted by David Grant <dm...@infinitydigital.com>.
for me, it’s /etc/apache2
And that’s on several machines.
On Jan 17, 2015, at 6:22 PM, Chris Arnold <ca...@electrichendrix.com> wrote:
>
>> On Jan 17, 2015, at 8:43 PM, David Grant <dm...@infinitydigital.com> wrote:
>>
>> Take a look at ports.conf.
>>
>> I think you’ll find what you’re looking for in that file, and then amend https.conf accordingly.
>>
>> Hope that helps
>
> Where exactly is ports.conf located? I searched my file system and could not find it
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.4 Problems
Posted by Chris Arnold <ca...@electrichendrix.com>.
> On Jan 17, 2015, at 8:43 PM, David Grant <dm...@infinitydigital.com> wrote:
>
> Take a look at ports.conf.
>
> I think you’ll find what you’re looking for in that file, and then amend https.conf accordingly.
>
> Hope that helps
Where exactly is ports.conf located? I searched my file system and could not find it
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.4 Problems
Posted by David Grant <dm...@infinitydigital.com>.
Take a look at ports.conf.
I think you’ll find what you’re looking for in that file, and then amend https.conf accordingly.
Hope that helps.
On Jan 17, 2015, at 4:15 PM, Chris Arnold <ca...@electrichendrix.com> wrote:
>> Apache 2.4 on sles 12. I understand this version is way >different from 2.2 but I can't get 2.4 to even listen on 80 or >443. Can anyone help me with this? The logs only shows >me when I start and stop Apache. Btw, I am using >apache2ctl stop/start as rcapache2 doesn't seem to >stop/start and etc/init.d/apache2 stop/start is not even in >that path........
>
> Here is my httpd.conf:
>
> # run under this user/group id
> Include /etc/apache2/uid.conf
>
> # - how many server processes to start (server pool regulation)
> # - usage of KeepAlive
> Include /etc/apache2/server-tuning.conf
>
> ErrorLog /var/log/apache2/error_log
>
> # generated from APACHE_MODULES in /etc/sysconfig/apache2
> Include /etc/apache2/sysconfig.d/loadmodule.conf
>
> # IP addresses / ports to listen on
> Include /etc/apache2/listen.conf
>
> # predefined logging formats
> Include /etc/apache2/mod_log_config.conf
>
> # generated from global settings in /etc/sysconfig/apache2
> Include /etc/apache2/sysconfig.d/global.conf
>
> # optional mod_status, mod_info
> Include /etc/apache2/mod_status.conf
> Include /etc/apache2/mod_info.conf
>
> Include /etc/apache2/mod_reqtimeout.conf
>
> # optional cookie-based user tracking
> # read the documentation before using it!!
> Include /etc/apache2/mod_usertrack.conf
>
> # configuration of server-generated directory listings
> Include /etc/apache2/mod_autoindex-defaults.conf
>
> # associate MIME types with filename extensions
> TypesConfig /etc/apache2/mime.types
> Include /etc/apache2/mod_mime-defaults.conf
>
> # set up (customizable) error responses
> Include /etc/apache2/errors.conf
>
> # global (server-wide) SSL configuration, that is not specific to
> # any virtual host
> Include /etc/apache2/ssl-global.conf
>
> # forbid access to the entire filesystem by default
> <Directory />
> Options None
> AllowOverride None
> # See /usr/share/doc/packages/apache2/README-access_compat.txt
> <IfModule mod_access_compat.c>
> Order deny,allow
> Deny from all
> </IfModule>
> <IfModule !mod_access_compat.c>
> Require all denied
> </IfModule>
> </Directory>
>
> # use .htaccess files for overriding,
> AccessFileName .htaccess
> # and never show them
> <Files ~ "^\.ht">
> # See /usr/share/doc/packages/apache2/README-access_compat.txt
> <IfModule mod_access_compat.c>
> Order allow,deny
> Allow from all
> </IfModule>
> <IfModule !mod_access_compat.c>
> Require all granted
> </IfModule>
> </Files>
>
> # List of resources to look for when the client requests a directory
> DirectoryIndex index.html index.html.var index.php
>
> Include /etc/apache2/default-server.conf
>
>
> # Another way to include your own files
> #
> # The file below is generated from /etc/sysconfig/apache2,
> # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
> # APACHE_CONF_INCLUDE_DIRS
> Include /etc/apache2/sysconfig.d/include.conf
>
> IncludeOptional /etc/apache2/vhosts.d/*.conf
>
> Here is the listen.conf:
>
> Listen 80
>
>
> <IfDefine SSL>
> <IfDefine !NOSSL>
> <IfModule mod_ssl.c>
>
> Listen 443
>
> </IfModule>
> </IfDefine>
> </IfDefine>
>
> Here is a vhost conf:
>
> <VirtualHost *:80>
> ServerAdmin email@domain.tld
> ServerName domain.tld
> ServerAlias www.domain.tld
>
> DocumentRoot /srv/www/htdocs/sites/domain
>
> # if not specified, the global error log is used
> ErrorLog /var/log/apache2/teknerds.net-error_log
> CustomLog /var/log/apache2/teknerds.net-access_log combined
>
> # don't loose time with IP address lookups
> HostnameLookups Off
>
> # needed for named virtual hosts
> UseCanonicalName Off
>
> # configures the footer on server-generated documents
> ServerSignature On
>
> ScriptAlias /cgi-bin/ "/srv/www/vhosts/dummy-host.example.com/cgi-bin/"
>
> # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
> # CGI directory exists, if you have one, and where ScriptAlias points to.
> #
> <Directory "/srv/www/vhosts/dummy-host.example.com/cgi-bin">
> AllowOverride None
> Options +ExecCGI -Includes
> <IfModule mod_access_compat.c>
> Order allow,deny
> Allow from all
> </IfModule>
> <IfModule !mod_access_compat.c>
> Require all granted
> </IfModule>
> </Directory>
>
>
> #
> # This should be changed to whatever you set DocumentRoot to.
> #
> <Directory "/srv/www/htdocs/sites/domain">
>
> Options Indexes FollowSymLinks
>
> AllowOverride None
>
> # See /usr/share/doc/packages/apache2/README-access_compat.txt
> <IfModule mod_access_compat.c>
> Order allow,deny
> Allow from all
> </IfModule>
> <IfModule !mod_access_compat.c>
> Require all granted
> </IfModule>
>
>
> </Directory>
>
> The error from chrome is connection rejected. Netstat -nlp does not show listening on 80 or 443. I have a phpinfo.php file on the doc root, a html file on the doc root and a website in the above location; can not get to any of these places
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org