Humberto Castro | 23 Apr 20:45 2014
Picon

already solved the problem - "¿How to solve '500 Internal Server Error' ?"

The code was a my mistake: I was wrong specifying the root directory: 

had written: AuthUserFile / verifuser.. And I needed to specify the absolute path: AuthUserFile / home / XXXXXXXXX / .verifuser. 

Thanks to everyone who commented me.
venu thangalapally | 23 Apr 04:27 2014
Picon

make: Fatal error: Command failed for target `all-recursive'

Guys.. am trying to install apache 2.4 on solaris 10

i cleared the configure step

and hit a roadbump during make step.. am attaching the error file , can any body please help me clearing out the step..

make: Fatal error: Command failed for target `all-recursive'






Regards
Venu
Making all in srclib
Making all in apr
/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/build/mkdir.sh tools
/bin/bash /apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/libtool --silent
--mode=compile gcc -g -O2   -DHAVE_CONFIG_H  -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE   -I./include
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/arch/unix
-I./include/arch/unix
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/arch/unix
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/private
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/private  -o
tools/gen_test_char.lo -c tools/gen_test_char.c && touch tools/gen_test_char.lo
/bin/bash /apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/libtool --silent --mode=link
gcc -g -O2   -DHAVE_CONFIG_H  -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE   -I./include
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/arch/unix
-I./include/arch/unix
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/arch/unix
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/private
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/private    -no-install    -o
tools/gen_test_char tools/gen_test_char.lo    -luuid -lsendfile -lrt -lsocket -lnsl  -lpthread
/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/build/mkdir.sh include/private
tools/gen_test_char > include/private/apr_escape_test_char.h
/bin/bash /apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/libtool --silent
--mode=compile gcc -g -O2   -DHAVE_CONFIG_H  -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE   -I./include
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/arch/unix
-I./include/arch/unix
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/arch/unix
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/private
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/private  -o
encoding/apr_escape.lo -c encoding/apr_escape.c && touch encoding/apr_escape.lo
/bin/bash /apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/libtool --silent --mode=link
gcc -g -O2   -DHAVE_CONFIG_H  -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE   -I./include
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/arch/unix
-I./include/arch/unix
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/arch/unix
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/private
-I/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/include/private   -version-info 5:1:5   
-o libapr-1.la -rpath /apps/users/thanvx/apache-test/apache2.4/lib encoding/apr_escape.lo
passwd/apr_getpass.lo strings/apr_cpystrn.lo strings/apr_fnmatch.lo strings/apr_snprintf.lo
strings/apr_strings.lo strings/apr_strnatcmp.lo strings/apr_strtok.lo tables/apr_hash.lo
tables/apr_skiplist.lo tables/apr_tables.lo atomic/unix/builtins.lo atomic/unix/ia32.lo
atomic/unix/mutex.lo atomic/unix/ppc.lo atomic/unix/s390.lo atomic/unix/solaris.lo
dso/unix/dso.lo file_io/unix/buffer.lo file_io/unix/copy.lo file_io/unix/dir.lo
file_io/unix/fileacc.lo file_io/unix/filedup.lo file_io/unix/filepath.lo
file_io/unix/filepath_util.lo file_io/unix/filestat.lo file_io/unix/flock.lo
file_io/unix/fullrw.lo file_io/unix/mktemp.lo file_io/unix/open.lo file_io/unix/pipe.lo
file_io/unix/readwrite.lo file_io/unix/seek.lo file_io/unix/tempdir.lo
locks/unix/global_mutex.lo locks/unix/proc_mutex.lo locks/unix/thread_cond.lo
locks/unix/thread_mutex.lo locks/unix/thread_rwlock.lo memory/unix/apr_pools.lo
misc/unix/charset.lo misc/unix/env.lo misc/unix/errorcodes.lo misc/unix/getopt.lo
misc/unix/otherchild.lo misc/unix/rand.lo misc/unix/start.lo misc/unix/version.lo
mmap/unix/common.lo mmap/unix/mmap.lo network_io/unix/inet_ntop.lo
network_io/unix/inet_pton.lo network_io/unix/multicast.lo network_io/unix/sendrecv.lo
network_io/unix/sockaddr.lo network_io/unix/socket_util.lo network_io/unix/sockets.lo
network_io/unix/sockopt.lo poll/unix/epoll.lo poll/unix/kqueue.lo poll/unix/poll.lo
poll/unix/pollcb.lo poll/unix/pollset.lo poll/unix/port.lo poll/unix/select.lo
poll/unix/z_asio.lo random/unix/apr_random.lo random/unix/sha2.lo random/unix/sha2_glue.lo
shmem/unix/shm.lo support/unix/waitio.lo threadproc/unix/proc.lo threadproc/unix/procsup.lo
threadproc/unix/signals.lo threadproc/unix/thread.lo threadproc/unix/threadpriv.lo
time/unix/time.lo time/unix/timestr.lo user/unix/groupinfo.lo user/unix/userinfo.lo   -luuid
-lsendfile -lrt -lsocket -lnsl  -lpthread
Making all in apr-util
Making all in os
Making all in unix
Making all in server
Making all in mpm
Making all in event
Making all in modules
Making all in aaa
Making all in cache
Making all in core
Making all in database
Making all in debugging
Making all in filters
Making all in http
Making all in loggers
Making all in metadata
Making all in proxy
Making all in session
Making all in slotmem
Making all in proxy/balancers
Making all in arch/unix
Making all in dav/main
Making all in generators
Making all in dav/fs
Making all in mappers
Making all in support
/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/libtool --silent --mode=link gcc
-std=gnu99  -g -O2         -o htpasswd  htpasswd.lo passwd_common.lo      
/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr-util/libaprutil-1.la -lexpat
/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/libapr-1.la -luuid -lsendfile -lrt
-lsocket -lnsl -lpthread
ld: fatal: recording name conflict: file
'/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/lib/libapr-1.so' and file
'/apps/users/thanvx/apache-test/httpd-2.4.9/srclib/apr/.libs/libapr-1.so' provide identical
dependency names: libapr-1.so.0  (possible multiple inclusion of the same file)
ld: fatal: file processing errors. No output written to .libs/htpasswd
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `htpasswd'
Current working directory /apps/users/thanvx/apache-test/httpd-2.4.9/support
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive|sed s/-recursive//`; \
list='  '; \
for i in $list; do \
    if test -d "$i"; then \
        target="$otarget"; \
        echo "Making $target in $i"; \
        if test "$i" = "."; then \
                made_local=yes; \
                target="local-$target"; \
        fi; \
        (cd $i && make $target) || exit 1; \
    fi; \
done; \
if test "$otarget" = "all" && test -z 'htpasswd htdigest htdbm ab logresolve httxt2dbm htcacheclean
rotatelogs checkgid fcgistarter'; then \
    made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
    make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'
Current working directory /apps/users/thanvx/apache-test/httpd-2.4.9/support
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive|sed s/-recursive//`; \
list='  srclib os server modules support'; \
for i in $list; do \
    if test -d "$i"; then \
        target="$otarget"; \
        echo "Making $target in $i"; \
        if test "$i" = "."; then \
                made_local=yes; \
                target="local-$target"; \
        fi; \
        (cd $i && make $target) || exit 1; \
    fi; \
done; \
if test "$otarget" = "all" && test -z 'httpd shared-build '; then \
    made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
    make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org
Vanhorn, Mike | 22 Apr 19:52 2014
Picon

building httpd with openldap


I am trying to build httpd 2.2.24 on a Solaris 10 system with OpenLDAP
rather than Solaris' LDAP. My original configure looks like this:

./configure --prefix=/usr/local/apache2.2.24
--enable-layout=Solaris-Apache2 --enable-mods-shared=all
--with-mpm=prefork --with-ldap --enable-authnz-ldap --enable-ldap
--with-ssl --enable-ssl --with-included-apr

Even after I have uninstalled the LDAP package from Oracle and installed
the OpenLDAP package (which went into /opt/csw), this still seems to be
finding an LDAP toolkit that configure labels as "Solaris" (during the
configure step for apr-util).

I have tried "--with-ldap=/opt/csw", but using that causes the configure
to fail when it tries to check for ldap. How do I tell the configure
process to use the LDAP libraries that are in /opt/csw and ignore any
other one(s) it finds?

Thanks!

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanhorn <at> wright.edu
http://www.cecs.wright.edu/~mvanhorn/
Trevor Saldanha | 22 Apr 16:22 2014
Picon

IIS Apache 2.2 on port 443

Hi All,

 

I’ve a server running IIS6 and Apache 2.2.

 

I have setup two IP’s. One for IIS and the other for Apache so port bindings are dedicated.

 

Separately they start and bind only to their dedicated IP on port 443 shown by netstat –a –n –o .

 

However both will not start up complaining about 443 not being available if one or the other is already started on 443, which I cannot see running netstat for the dedicated IP their supposed to start up on.

 

I also thought the 0.0.0.0:443 binding on Windows Server may be causing the issue so bound Apache to 9000 also bound to 0.0.0.0 but on its dedicated IP and it started up..

 

Any help would be appreciated!

 

Thanks & Regards,

 

   Trevor Saldanha

   Head of IT

 

Disclaimer: Comtrex Systems Corporation UK LTD (CSCUK) reserves the right to monitor emails incoming and outgoing from its system. Emails received from <at> comtrex.co.uk are intended for the addressed recipient(s) only. Do not store, use or forward emails received in error. If you have received an email in error, please notify the sender and delete your copy permanently. CSCUK accepts no liability for losses and or damages as a result of email(s) received from <at> comtrex.co.uk to person(s) or system(s). Copyright in this email and any attachments belongs to Comtrex Systems Corporation UK LTD. Comtrex Systems Corporation Limited is registered in England No.1367328 at 2 Gatwick Metro Centre, Balcombe Road, Horley, Surrey, RH6 9GA.
Jonathan Hayward | 22 Apr 15:46 2014
Picon

Why is debian-hosted 2.2.x giving 403 on CGI's?

I have a fresh Debian installation (if that's not an oxymoron), with Apache 2.2.x which I am migrating to after using Ubuntu Saucy and Apache 2.4.x, and I'm pulling my hair out about why http://dev.JonathansCorner.com/index.cgi (used to serve the homepage) is giving a 403. An old, static http://dev.JonathansCorner.com/index.html is working just fine, as well as other static pages within the site.

What I had remembered to do was add mod_cgi:

root <at> ps306627:/etc/apache2/mods-enabled# ls *cgi* cgi.load cgid.conf cgid.load proxy_scgi.load

And after a bit of searching, I confirmed that I needed ExecCGI and AddHandler directives:

<Directory /home/cjsh/> Options +ExecCGI Indexes FollowSymLinks MultiViews AddHandler cgi-script .cgi AllowOverride None Order allow,deny allow from all </Directory>

I thought it might be that I hadn't explicitly said an index.cgi could serve the DirectoryIndex, but I have:

DirectoryIndex index.cgi index.html

And furthermore, another CGI script at http://dev.JonathansCorner.com/sidebar_index.cgi is behaving exactly like the homepage and gives a 403.

I've also restarted the server every time I made a chance I wanted to test. I checked directory permissions; the static content wouldn't be served if the Apache processes couldn't access the static content, and I double-checked and have confirmed that when I run the index.cgi from a shell as nobody it gives the output I want without a Linux permissions error.

What else can I give to let someone explain why I'm not plugging in all the things I need to plug in to get index.cgi to work the way it does executed from a shell as nobody? Here is a concatenation of my apache2.conf and 000-default.conf (I deleted 000-default; the configuration files are imported from an Apache 2). Still a little puzzled at what's going wrong:

# # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See http://httpd.apache.org/docs/2.2/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "foo.log" # with ServerRoot set to "/etc/apache2" will be interpreted by the # server as "/etc/apache2/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # #ServerRoot "/etc/apache2" # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # LockFile ${APACHE_LOCK_DIR}/accept.lock # # PidFile: The file in which the server should record its process # identification number when it starts. # This needs to be set in /etc/apache2/envvars # PidFile ${APACHE_PID_FILE} # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadLimit: ThreadsPerChild can be changed to this maximum value during a # graceful restart. ThreadLimit can only be changed by stopping # and starting Apache. # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule mpm_worker_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0 </IfModule> # event MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule mpm_event_module> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> # These need to be set in /etc/apache2/envvars User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} # # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy all </Files> # # DefaultType is the default MIME type the server will use for a document # if it cannot otherwise determine one, such as from filename extensions. # If your server contains mostly text or HTML documents, "text/plain" is # a good value. If most of your content is binary, such as applications # or images, you may want to use "application/octet-stream" instead to # keep browsers from trying to display binary files as though they are # text. # DefaultType text/plain # # HostnameLookups: Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # The default is off because it'd be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. # HostnameLookups Off # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # ErrorLog ${APACHE_LOG_DIR}/error.log # # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel warn # Include module configuration: Include mods-enabled/*.load Include mods-enabled/*.conf # Include all the user configurations: Include httpd.conf # Include ports listing Include ports.conf # Include ports listing Include ports.conf # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i # LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %O" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent # Include of directories ignores editors' and dpkg's backup files, # see README.Debian for details. # Include generic snippets of statements Include conf.d/ # Include the virtual host configurations: Include sites-enabled/ AddHandler cgi-script .cgi # End apache2.conf; begin sites-enabled/000-default.conf: #<VirtualHost *:80> #ServerName media.pragmatometer.com #ServerAlias media.ccachicago.pragmatometer.com #DocumentRoot /home/cjsh/ccachicago/media #<Directory "/home/cjsh/ccachicago/media/"> #Options Indexes MultiViews FollowSymLinks #AllowOverride None ##Order deny,allow ##Deny from all ##Allow from 127.0.0.0/255.0.0.0 ::1/128 #</Directory> #ServerAdmin CJSHayward <at> PObox.com #</VirtualHost> <VirtualHost *:80> ServerAdmin CJSHayward <at> POBox.com ServerName default.jonathanscorner.com DocumentRoot /home/cjsh/mirror RewriteEngine On RewriteRule ^(.*)$ http://jonathanscorner.com$1 [R=301,L] </VirtualHost> <VirtualHost *:80> ServerAdmin CJSHayward <at> POBox.com ServerName jonathanscorner.com ServerAlias dev.jonathanscorner.com DocumentRoot /home/cjsh/mirror RewriteEngine On RewriteRule ^[SANITIZED]$ / [R=301,L] RewriteRule ^[SANITIZED]$ / [R=301,L] <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /home/cjsh/> Options +ExecCGI Indexes FollowSymLinks MultiViews AddHandler cgi-script .cgi AllowOverride None Order allow,deny allow from all </Directory> DirectoryIndex index.cgi index.html ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorDocument 404 /missing.html ErrorDocument 500 /servererror.html ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin CJSHayward <at> POBox.com ServerName www.jonathanscorner.com ServerAlias jonathonscorner.com www.jonathonscorner.com johnathanscorner.com www.johnathanscorner.com johnathonscorner.com www.johnathonscorner.com jonathanscorner.biz www.jonathanscorner.com jonathanscorner.org www.jonathanscorner.org jonathanscorner.info www.jonathanscorner.info jonathanscorner.net www.jonathanscorner.net DocumentRoot /home/cjsh/mirror RewriteEngine On RewriteRule ^(.*)$ http://jonathanscorner.com$1 [R=301,L] </VirtualHost>


--
Jonathan Hayward, Web Developer and Unix/Linux Guru
If you read just one of my books, you'll want The Best of Jonathan's Corner.
cpanon | 22 Apr 04:14 2014
Picon

Re:


Hi! http://66.71.163.250/_redirect?zomofos105170
sideslinder | 19 Apr 13:04 2014
Picon

how to prevent the apache main process from accepting the connection from remote host?

If the main proces accept the remote connection, the configuration as below will fail to reboot the apache process.
<IfModule mpm_winnt_module>
    ThreadsPerChild        150
    MaxConnectionsPerChild   100
</IfModule>

So, when the max connection(the connection was accepted by the main process) reached, Apache will not restart, and any other client can not access the Apache web server.

Hope to find a solution. Thank you.
 
also i raise an issue on apachen bug database, below is the link
Humberto Castro | 18 Apr 21:24 2014
Picon

¿How to solve '500 Internal Server Error' ?

Hello. I am configuring restricted access to a directory within my site, using the file '.htaccess' which references a file where the list of users is, denominated 'htpasswd'; but having already uploaded the two files (in the same folder), when I try to access via web to the protected folder, the first time is displayed the popup asking for username and password, but once I enter the data is displayed the following message:

 

--------------------------------------------------

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, support <at> dominio.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

--------------------------------------------------

 

And the next time I go back to try to get, not even asks for my username and password, but immediately the same above error message is displayed. ¿What could I be doing wrong in the process ? Thanks and I hope you can help me.

 

Initially I tried the protection placing the file ‘.htpassswd’ in the root, and accordingly placing the first line of ‘.htaccess’ like this: “AuthUserFile /.htpasswd”. At this point of time the problem presented was exactly the same (the first time the system asked me for the username and password, and then it displayed the error message; the following times not even asked for the user data and immediately it displayed the error). So that's the reason I opted to move the '.Htpasswd' to the same protected directory to detect well what was my mistake.

 

I have also tested leaving the '.Htaccess' file completely blank and, thus is not generated any error message; obviously it does not request data to validate username.   

 

Initially I had expected the original password of the user within the '.Htpasswd' file, it was encrypted by the Crypt() function of PHP, but this did not happened.

 

--------------------------------------------------

The contents of my '.Htaccess' file is:

AuthUserFile /ruta/.htpasswd

AuthName 'Por favor, introduzca usuario y contraseña'

AuthType Basic

Require valid-user

 

The contents of the '.Htpasswd' file is:

uprueba:cumGzwtU82Vts

--------------------------------------------------

 

I have noticed that removing the line 'Require valid-user' the error is not generated - but obviously the system lets access the directory without validating the user. I even tried changing this line with 'Require user uprueba', but thus the same error message is generated.

 

I also changed the permissions on both files to '755', even to '777', but the error is still generated.



--

HUMBERTO

Michael Peters | 18 Apr 20:16 2014

NameVirtualHost address is not supported

I have a few sites I’d like to run on a single server with one IP on port 80 and 443. I’ve tried several configuration examples without success. I get error messages like this:

 

Starting httpd: [Fri Apr 18 09:23:32 2014] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

[Fri Apr 18 09:23:32 2014] [warn] NameVirtualHost 184.168.190.45:0 has no VirtualHosts

 

When I put multiple entries into httpd.conf similar to this:

 

#

<VirtualHost 208.109.171.169:80>

ServerName sitename-1.com

DocumentRoot "/www/html/ sitename-1"

ServerAdmin webmaster <at> sitename-1.com

<Directory "/www/html/ sitename-1">

allow from all

Options +Indexes

</Directory>

</VirtualHost>

#

<VirtualHost 208.109.171.169:80>

ServerName sitename-2.com

DocumentRoot "/www/html/ sitename-2"

ServerAdmin webmaster <at> sitename-2.com

<Directory "/www/html/ sitename-2">

allow from all

Options +Indexes

</Directory>

</VirtualHost>

#

 

There is nothing but defaults in the ssl.conf file.

 

I have a site running fine located in the root directory, but when I try to add other sites in subdirectories, that’s when the errors start and all sites go down. Would anyone please offer me a suggestion for enabling multiple sites for Apache 2.2?

 

Best regards,

 

Michael

Help with Virtual Hosting on Linux 3.2 / Ubuntu 12.04.4

Definite Linux newby, and after bumbling about with nothing working, I thought I'd ask.

 

With the below setup, and an entry in my hosts file, FireFox complains with

Unable to connect
Firefox can't establish a connection to the server at wtp4.atoztheworld.com.

 

+++++++++++++++++++++++++++++++++++++++++++++
- Multiple websites, each has it's own config file for mailman, custom redirects, mod_rewrite,  whatever
- Linux 3.2.0-60-generic / Ubuntu 12.04.4
# 1) create directories to hold website
/var/www/AZtheWorld
/var/www/AZtheWorld/htdocs
/var/www/AZtheWorld/logs
/var/www/AZtheWorld/index.html # Hello World output
/var/www/website2
etc.
# 2) The next thing to do is to enable virtual hosts in your Apache configuration. The simplest way to do this is to create a file called /etc/apache2/conf.d/virtual.conf and include the following content in it:

     #      # We're running multiple virtual hosts.      #      NameVirtualHost *
#TODO valid for my situation? Came from http://www.debian-administration.org/articles/412

#TODO https://httpd.apache.org/docs/2.4/vhosts/name-based.html  says a reference is
needed in etc/apache2/httpd.conf but I do not see this referenced anywhere else.
Is it required?? Does #2 handle it??

# 3) # AZtheWorld (/etc/apache2/sites-available/AZtheWorld)
# separate files for each site
<VirtualHost *>

#ServerAdmin webmaster <at> example.com
#TODO find out about this

ServerName wtp4.atoztheworld.com
#ServerAlias example.com # used only if needed / wanted

# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /var/www/AZtheWorld

# CGI Directory
#ScriptAlias /cgi-bin/ /home/www/www.example.com/cgi-bin/
#<Location /cgi-bin>
#Options +ExecCGI
#</Location>
#TODO find out about this

# Logfiles
ErrorLog /var/www/AZtheWorld/logs/error.log
CustomLog /var/www/AZtheWorld/logs/access.log combined

</VirtualHost>
# 4) enable sites and reload ( or restart? )
# a2dissite default #
# a2ensite AZtheWorld
# service apache2 restart

+++++++++++++++++++++++++++++++++++++++++++++

 

Thanks,

 

Roy Hinkelman
Technical Services
World Trade Press
707-774-7411
roy <at> worldtradepress.com
________________________________
www.WorldTradePress.com (main website)

Humberto Castro | 18 Apr 19:29 2014
Picon

¿Cómo se soluciona "500 Internal Server Error" ?

**************************************************
¿Cómo se soluciona '500 Internal Server Error' ?
**************************************************

Hola. Estoy configurando Acceso Restringido a un directrio dentro de mi sitio web, usando el archivo '.htaccess' el cual hace referencia al archivo en donde se encuentra la lista de usuarios, denominado '.htpasswd'; pero habiendo ya cargado los dos archivos (a la misma carpeta), cuando intento acceder mediante el explorador de internet a la carpeta protegida, la primera vez se muestra la ventana emergente pidiendo el Nombre_de_Usuario y la Contraseña, pero una vez entro los datos se muestra el siguiente mensaje:

--------------------------------------------------
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support <at> dominio.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
--------------------------------------------------

Y las siguientes veces que vuelvo a intentar entrar, ya ni siquiera me pide el Nombre_de_Usuario y Contraseña, sino que de una vez se muestra el mismo mensaje de error anterior. ¿Qué podría estar haciendo mal en el procedimiento ? Gracias y ojalá me puedan ayudar.

Inicialmente intenté la protección colocando el archivo .htpassswd en la raiz, y de acuerdo a esto colocando la primera linea de .htaccess así: 'AuthUserFile /.htpasswd'. En este punto del tiempo el inconveniente presentado fue exactamente el mismo (la primera vez el sistema me pidió el Nombre_de_Usuario y Contraseña, y luego me presentó el mensaje de error; las siguientes veces ni siquiera me pidió los datos del usuario y de una vez me presentó el error). Por eso opté por pasar el '.htpasswd' al mismo directorio protegido para detectar bien cuál era el error de mi parte.

He probado también dejando el archivo '.htaccess' completamente en blanco y, de esta forma no se me genera ningún mensaje de error, claro que obviamente no me pide datos para validar Nombre_de_Usuario.

Inicialmente esperaba que la contraseña original para el usuario dentro del archivo '.htpasswd' fuera encriptada la función crypt() de PHP, pero esto no se dio.

--------------------------------------------------
EL contenido de mi archivo '.htaccess' es:
AuthUserFile /ruta/.htpasswd 
AuthName 'Por favor, introduzca usuario y contraseña'
AuthType Basic
Require valid-user

El contenido del archivo '.htpasswd' es:
uprueba:cumGzwtU82Vts
--------------------------------------------------

He detectado que al quitar la linea 'Require valid-user' no se genera el error - pero obviamente deja entrar al directorio sin validar el usuario. Inclusive he intentado cambiando esta linea por 'Require user uprueba', pero de esta forma se genera exactamente el mismo mensaje de error.

También he cambiado los permisos a ambos archivos a '755', inclusive a '777', pero se sigue generando el error.


--
HUMBERTO

Gmane