[users@httpd] Page display on default html page

2019-11-18 Thread Jos Chrispijn
I have created a default html site that is displayed when visitors typed 
in a domain that I own, but for which I haven't yet created a website for.


As this default site has a domain name that is not the name that a 
visitor typed in, I would like to disply that domain name on its index 
page like


'You requested'

www.adomain.com

'but unfortunately it doesn't have a site page yet'

Can someone tell me how I can do something like this without java script?

Thanks!
Jos



Re: [users@httpd] Page display on default html page

2019-11-19 Thread Jos Chrispijn

On 18-11-19 21:24, Anil Kumar P wrote:


You can use SSI for this.


Thanks, that works!

Best, Jos

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Wordpress | user:group setting

2021-04-03 Thread Jos Chrispijn

Dear list,
Can you tell me how I should indentify my user:group setting for my 
personal website?

Currently I own my website as www:www (for Wordpress auto-update sake).
Would it be more safe to set this to www:me ?

Thanks, Jos


[users@httpd] Upgrade notifications

2021-09-20 Thread Jos Chrispijn

Just upgraded to Apache24 2.4.49. After I got this line displayed:

You may need to manually remove /usr/local/etc/apache24/httpd.conf if it 
is no longer needed.


So I did _not_ delete it. Can you tell when it would not be longer 
needed (lots of config lines in it)?


[us...@httpd] Sudden death

2009-07-11 Thread Jos Chrispijn
ommon
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/httpd-access.log combined
ServerSignature On


   Alias /icons/ "/usr/local/www/icons/"

   
   Options Indexes MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
   
   Alias /manual/ "/usr/local/share/doc/apache/"
   
   Options Indexes FollowSymlinks MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
   
   ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
   
   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
   



   IndexOptions FancyIndexing
   AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

   AddIconByType (TXT,/icons/text.gif) text/*
   AddIconByType (IMG,/icons/image2.gif) image/*
   AddIconByType (SND,/icons/sound2.gif) audio/*
   AddIconByType (VID,/icons/movie.gif) video/*

   AddIcon /icons/binary.gif .bin .exe
   AddIcon /icons/binhex.gif .hqx
   AddIcon /icons/tar.gif .tar
   AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
   AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
   AddIcon /icons/a.gif .ps .ai .eps
   AddIcon /icons/layout.gif .html .shtml .htm .pdf
   AddIcon /icons/text.gif .txt
   AddIcon /icons/c.gif .c
   AddIcon /icons/p.gif .pl .py
   AddIcon /icons/f.gif .for
   AddIcon /icons/dvi.gif .dvi
   AddIcon /icons/uuencoded.gif .uu
   AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
   AddIcon /icons/tex.gif .tex
   AddIcon /icons/bomb.gif core

   AddIcon /icons/back.gif ..
   AddIcon /icons/hand.right.gif README
   AddIcon /icons/folder.gif ^^DIRECTORY^^
   AddIcon /icons/blank.gif ^^BLANKICON^^
   DefaultIcon /icons/unknown.gif
   ReadmeName README
   HeaderName HEADER
   IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t



   AddEncoding x-compress Z
   AddEncoding x-gzip gz tgz
   AddLanguage da .dk
   AddLanguage nl .nl
   AddLanguage en .en
   AddLanguage et .ee
   AddLanguage fr .fr
   AddLanguage de .de
   AddLanguage el .el
   AddLanguage he .he
   AddCharset ISO-8859-8 .iso8859-8
   AddLanguage it .it
   AddLanguage ja .ja
   AddCharset ISO-2022-JP .jis
   AddLanguage kr .kr
   AddCharset ISO-2022-KR .iso-kr
   AddLanguage nn .nn
   AddLanguage no .no
   AddLanguage pl .po
   AddCharset ISO-8859-2 .iso-pl
   AddLanguage pt .pt
   AddLanguage pt-br .pt-br
   AddLanguage ltz .lu
   AddLanguage ca .ca
   AddLanguage es .es
   AddLanguage sv .sv
   AddLanguage cz .cz
   AddLanguage ru .ru
   AddLanguage zh-tw .tw
   AddLanguage tw .tw
   AddCharset Big5 .Big5.big5
   AddCharset WINDOWS-1251 .cp-1251
   AddCharset CP866.cp866
   AddCharset ISO-8859-5   .iso-ru
   AddCharset KOI8-R   .koi8-r
   AddCharset UCS-2.ucs2
   AddCharset UCS-4.ucs4
   AddCharset UTF-8.utf8
   
   LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru 
ltz ca es sv tw

   

   
   AddType application/x-httpd-php3 .php3
   AddType application/x-httpd-php3-source .php3s
   
   
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps
   
   
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps
   
   AddType application/x-tar .tgz
   AddType image/x-icon .ico
   AddHandler cgi-script .cgi
   AddHandler cgi-script .pl



   BrowserMatch "Mozilla/2" nokeepalive
   BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
   BrowserMatch "RealPlayer 4\.0" force-response-1.0
   BrowserMatch "Java/1\.0" force-response-1.0
   BrowserMatch "JDK/1\.0" force-response-1.0



   Options Indexes FollowSymLinks MultiViews ExecCGI Includes
   AllowOverride AuthConfig Limit Indexes Options FileInfo
   Order allow,deny
   Allow from all


### Section 3: Virtual Hosts

NameVirtualHost *

include /usr/local/etc/apache/httpd.sites


[httpd-sites]

# 
# [25/10/2008] Mysite.com
# 


   ServerNamewww.mysite.com
   ServerAdmin   webmas...@mysite.com
   ServerAlias   mysite.com
   DocumentRoot  /usr/home/me/www/mysite.com
   Scriptalias /cgi-bin/ /usr/local/www/cgi-bin/
   ErrorLog  /var/log/websites/mysite-error.log
   Customlog /var/log/websites/mysite.log combined


# ---


Jos Chrispijn


Re: [us...@httpd] Sudden death

2009-07-12 Thread Jos Chrispijn

Frank,

Francois Gingras wrote:

Pasting the whole config file is not particularly useful.
  


Sorry, newbie mode; won't happen again. If I don't do such in pe Postfix
I will be shot, so I thought it might help in this message as well L-)


Try tell us what the error log contains, or starting httpd with httpd
X, or running it with gdb.
  

Error log didn't say that much:

[Sun Jul 12 07:21:38 2009] [info] (2)No such file or directory:
make_sock: for port 80, setsockopt: (SO_ACCEPTFILTER)
[Sun Jul 12 07:21:38 2009] [warn] pid file /var/run/httpd.pid
overwritten -- Unclean shutdown of previous Apache run?

With some help (thanks Jack) we found out that mod_unique_id.so was the
one that caused the problem; after this it runs smoothly again.

[Sun Jul 12 07:21:38 2009] [notice] Apache/1.3.41 (Unix) PHP/5.2.10 with
Suhosin-Patch configured -- resuming normal operations
[Sun Jul 12 07:21:38 2009] [info] Server built: Jun 12 2009 21:33:15
[Sun Jul 12 07:21:38 2009] [notice] Accept mutex: flock (Default: flock)
[Sun Jul 12 07:22:01 2009] [info] removed PID file /var/run/httpd.pid
(pid=49247)

I really have no clue why these kind of flaws happen all of a sudden;
that wouldn't be such a big problem if one could find the reason of that
somewhere in a (system) log file.

regards,
Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Apache 1.3.x or 2.x ?

2009-07-12 Thread Jos Chrispijn

What I found out is that, with regards to Apache 1.3, Apache 2.0:

- provides multi-threading support;
- filtered input/output (I/O), which allows one module to modify the 
output of another module;
- also provides support for SSL without any modifications to the core 
(|mod_tls).

|
Can someone tell me which of these advantages is, from a user 
perspective, the most important one?

Did I miss other advantages?

Jos Chrispijn


[us...@httpd] Remote .htaccess

2009-07-21 Thread Jos Chrispijn
Is it possible to use a .htaccess in a folder in which I define a 
htpasswd path that physically is located on a complete different server?


Jos Chrispijn

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Default page location

2009-07-26 Thread Jos Chrispijn
I would like to force all domain requests _not_ being defined in my 
httpd.conf to be shown a special pre-defined web page with the requested 
domein displayed in that page. Can someone please tell me how I can do 
this? Web pages etc. are no problem, just the way to configure this in 
Apache setup. Thanks.


Jos Chrispijn

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Cron to check that domains are running

2009-07-26 Thread Jos Chrispijn

sbogde wrote:

I'm upset because sometimes (rarely, though) I discovered (by opening
www.domainX.com in the browser) that my domains did not work and I had to
restart apache using my root privileges.
  
I think it is worth first to find out why this happens. Did you 
investigate your logfiles?



Do you have any idea how can I automatically check if such a situation
occurs again? A cron job or something like that?
  
If you really want to solve this problem by running a cronjob, you might 
put it something like


30  * * * *root/cronjobs/resQmyhttpd.run

resQmyhttpd.run:
apachectl stop
apachectl start

be aware that if there are visitors online, they might be (temporarilly) 
disconnect by this action.


Jos Chrispijn

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] .htaccess

2009-09-07 Thread Jos Chrispijn

Is there a way of forcing webbrowser to present a login popup every time
they enter a protected URL? Now I login once and until I delete my
cookies, I can go to the URL without having a username and password
filled out, even not having the 'remember password' option active.

Have search for session alike solution, but can't find a proper solution
yet. Can someone hint me out on this? Thanks.
Jos Chrispijn

- No one is listening until you make a mistake...


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Digest auth

2009-09-12 Thread Jos Chrispijn

[Apache apache-1.3.41_1]

Just checked my apache's httpd.conf and saw that in my configuration 
file says


LoadModule digest_module  libexec/apache/mod_digest.so

I read somewhere that "mod_digest is a rather old module, which would be 
an older version of the digest authentication specification. Probably 
not work with newer browsers."


Would I need to implement the module mod_auth_digest instead and how 
should I do that thru php5-extensions (gives me the mod_digest module)?


Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] SO_ACCEPTFILTER

2009-09-17 Thread Jos Chrispijn

[Apache apache-1.3.41_1]

Last night my Apache server went down. Can use apachectl start, but 
doesn't come up again.


My httpd-error.log file says:
(2)No such file or directory: make_sock: for port 80, setsockopt:
(SO_ACCEPTFILTER)

Can someone tell me what happens here? Thanks.

Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] SO_ACCEPTFILTER

2009-09-17 Thread Jos Chrispijn

Tom,

We found out that this problem had been caused by some port upgrade 
(FreeBSD).

Thanks to a tip of Jack Raats, we hashed out 'mhash.so'

You can find a thread on this by google-ing

'apachectl gracefult causes Signal 11 crash after 6.3 to 7.0 upgrade 
[SOLVED]'


Jos Chrispijn

Tom Evans wrote:

On Thu, 2009-09-17 at 10:23 +0200, Jos Chrispijn wrote:
  

[Apache apache-1.3.41_1]

Last night my Apache server went down. Can use apachectl start, but 
doesn't come up again.


My httpd-error.log file says:
(2)No such file or directory: make_sock: for port 80, setsockopt:
(SO_ACCEPTFILTER)

Can someone tell me what happens here? Thanks.

Jos Chrispijn





Apache tried to load an accept filter for port 80, but it couldn't do
it. An accept filter is a kernel module that reads in the initial part
of the request in kernel mode before handing it over to apache, which
increases performance.

Normally it would fail to load it if the kernel module is not available.
Assuming you are using FreeBSD, try ''kldload accf_http``

The error you are seeing is not fatal though. Is anything else mentioned
in the error log?

Cheers

Tom


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org
  


[us...@httpd] Apache version dubio

2009-10-02 Thread Jos Chrispijn

Out of a technical and practical perspective, what should be the best
choice now: Apache 2 or a lower version?

Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Sudden death

2009-10-09 Thread Jos Chrispijn

apache-1.3.41_1

I just ran into a strange thing. After having rebooted my server, Apache 
isn't starting up again saying:


Syntax error on line 54 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/libexec/apache/libperl.so into server: Shared 
object "libperl.so" not found, required by "libperl.so"


# find / -name mod_perl.so -print 

and nothing found. How can this happen? Is there a quick way of 
installing this or do I have to install Apache completely from scratch?


thanks,
Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Apache 2.2

2009-12-05 Thread Jos Chrispijn

Just migrated to apache-2.2.13 and already ran into this problem:

myserver# apachectl fullstatus
Forbidden -  You don't have permission to access /server-status on this 
server.


Even getting the same error when logged on as 'root'

Can you tell me what is causing this? Thanks.
Jos

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache 2.2

2009-12-05 Thread Jos Chrispijn

Rich Bowen wrote:
Being logged on as root makes no difference, because this is a HTTP 
request to the server.


What does the error log say? You're probably lacking an "allow from" 
directive somewhere. See: 
http://wiki.apache.org/httpd/ClientDeniedByServerConfiguration and
Just found out (reading some stuff about directives) that in the 
standard httpd.conf file there is a section:


# First, we configure the "default" to be a very restrictive set of 
features.

#

   AllowOverride None
   Order deny,allow
   Deny from all


which I hashed out immediately to see what would happen. After that, I 
browsed to one of my sites and got response, but only .php code 
contents. So I knew I was on the right way. Then I noticed that in my 
httpd.conf there was a line saying:


*LoadModule php5_module libexec/apache22/libphp5.so
*
but there wasn't a accompanied AddType application directive! So I added 
in the  an extra line, saying


*AddType application/x-httpd-php .php*

After restarting Apache22, it all works again without problems. And even 
faster than it did before!


I am quite pleased to see that the httpd.conf is considerably shorter 
than the Apache1.3x was. Mine is so compact now that you nearly wouldn't 
believe it would work.
So overall experience for an Apache nub like me: if you can, do use it. 
Will make your life much easier when it runs finally :-)


Thanks,
Jos Chrispijn



[us...@httpd] Default layout

2010-01-08 Thread Jos Chrispijn
I have given a user access to a text (sub)directory. Can someone tell me 
how I can change the default view layout of such a directory (the 
default Apache view when not using index.html?
I would like to provide a wider tab on first column and change file 
specific images like Word, Excel, Word and PDF format files. Thank you.


Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Default layout

2010-01-09 Thread Jos Chrispijn

On 9-1-2010 9:17, Sean Conner wrote:

Check out

Thanks, that is exactly what I needed.

Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] PHP5 in httpd.conf

2010-01-11 Thread Jos Chrispijn

Recently migrated from Apache 1.3.x to Apache 2.2.x

What I knew from 1.3.x is that I had to add some extra lines in the 
httpd.conf, in order to have PHP5 working.
As it is now working without problems, can someone tell my why in 
httpd.conf doesn't include this anymore



 DirectoryIndex index.php index.html index.htm



AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


regards,
Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] PHP5 in httpd.conf

2010-01-11 Thread Jos Chrispijn

Frank,

On 11-1-2010 16:40, Frank Gingras wrote:

The rules have changed. See:

http://www.php.net/manual/en/install.unix.apache2.php

AddType was the appropriate method to do so in 1997.

I see; thanks for your information, will have a look!

regards,
Jos Chrispijn


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Redirect on bases of ip address

2010-02-14 Thread Jos Chrispijn
Can someone tell me how I can redirect visitors to either index.php or 
index.html on basis of their ip address?
I am in the process of building a new website and only for my own ip 
address I want to get access to the new site (index.php) and have all 
other visitors been redirected to the old website (index.html + 
redirection).


thanks in advance
Jos Chrispijn



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] .php or .html

2012-08-28 Thread Jos Chrispijn
I have my site at a hosting provider who has strict standards regarding 
the DirectoryIndex setting.


Having Joomla installed, I can access my index.php when I enter the URL 
of my website.
The problem is that I first want to display an index.html page before I 
display my site. So I put an extra line in my .htaccess containing


DirectoryIndex index.html index.php

But that doesn't work as my provider tells me now that it is not allowed 
to use `Options` and `DirectoryIndex` related functions in my .htaccess 
file.
He advised me to rename my index.php to something else, but if I do 
that, Joomla (my CMS) can't find the branch it is sitting on (hardcoded 
it looks for index.php).


Can someone tell me how to solve this?

thanks,
Jos Chrispijn

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] You must select one and only one option from the INET single

2012-09-03 Thread Jos Chrispijn

Can somebody tell me what this means?

'You must select one and only one option from the INET single'

Got that message during upgrading 'apache-2.2.22_6' to 'apache22-2.2.22_7'

thanks,
Jos Chrispijn

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] You must select one and only one option from the INET single | SOLVED

2012-09-04 Thread Jos Chrispijn

Solved; added IPv6 support to the setup.

thanks
Jos Chrispijn

Jos Chrispijn:

Can somebody tell me what this means?

'You must select one and only one option from the INET single'

Got that message during upgrading 'apache-2.2.22_6' to 
'apache22-2.2.22_7'


thanks,
Jos Chrispijn

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Apache24 - Can't get .htaccess to work

2018-08-11 Thread Jos Chrispijn

[apache24-2.4.34]

For some reason I can't get .htaccess to work.
Can you tell me what I am doing wrong here? Let me share some settings:

# Active --

LoadModule authn_file_module libexec/apache24/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache24/mod_authn_dbm.so
LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
LoadModule authn_anon_module libexec/apache24/mod_authn_anon.so
LoadModule authn_dbd_module libexec/apache24/mod_authn_dbd.so
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache24/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache24/mod_authz_owner.so
LoadModule authz_dbd_module libexec/apache24/mod_authz_dbd.so
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache24/mod_auth_digest.so
LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
LoadModule filter_module libexec/apache24/mod_filter.so
LoadModule mime_module libexec/apache24/mod_mime.so
LoadModule log_config_module libexec/apache24/mod_log_config.so
LoadModule env_module libexec/apache24/mod_env.so
LoadModule headers_module libexec/apache24/mod_headers.so
LoadModule setenvif_module libexec/apache24/mod_setenvif.so
LoadModule version_module libexec/apache24/mod_version.so
LoadModule ssl_module libexec/apache24/mod_ssl.so
LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
LoadModule unixd_module libexec/apache24/mod_unixd.so
LoadModule status_module libexec/apache24/mod_status.so
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
LoadModule dir_module libexec/apache24/mod_dir.so
LoadModule alias_module libexec/apache24/mod_alias.so
LoadModule rewrite_module libexec/apache24/mod_rewrite.so
LoadModule php7_module libexec/apache24/libphp7.so

# General setting (1)

 AllowOverride none
 Require all denied


# Specific setting for my website (2)

 AllowOverride all
 Require all granted


I created a password for a valid user of who's credentials are saved in 
the AuthUserFile below


The content of the .htaccess file @ (3)
AuthType Basic
AuthName "Password Protected"
AuthBasicProvider file
AuthUserFile /usr/home/user/.htpasswd
AuthName secure

  Require valid-user



What I only can think of is that the .htaccess file (3) or the .htpasswd 
file does not have the correct owner and/or permissions.
Which user and group should the .htaccess belong to? I now set it to 
user:www

File security is set to 640

The .htpasswd file is set to user:user

Even when I hash out (1) and restart Apache 2.4, I still don't get the 
authorisation screen to provide a password, which I think means that 
.htaccess is not interpreted.


Thanks for your help,
Jos



Re: [users@httpd] Apache24 - Can't get .htaccess to work

2018-08-11 Thread Jos Chrispijn

On 11-8-2018 12:01, Jos Chrispijn wrote:


AuthType Basic
AuthName "Password Protected"
AuthBasicProvider file
AuthUserFile /usr/home/user/.htpasswd
AuthName secure

   Require valid-user




The last line should not be in it, sorry.


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Apache24 - Can't get .htaccess to work

2018-08-11 Thread Jos Chrispijn

On 11-8-2018 12:01, Jos Chrispijn wrote:



  AllowOverride all
  Require all granted



Found a solution for the issue:

- Watch the forward slash at the end of the line (a)
- Added this new line (b)

a 
b   Options Indexes FollowSymLinks
AllowOverride all
Require all granted
 

Sometimes the solution is so obvious that you overlook it.

Thanks, Jos

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Re: [OT] bounced messages

2018-08-15 Thread Jos Chrispijn

On 14-8-2018 8:22, @lbutlr wrote:


It is not a good idea to spam filter list messages.


Can you explain?

gr, Jos


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org