[users@httpd] New virtual host not working

2016-09-20 Thread Roparzh Hemon
I have several working virtual hosts on my Mac. Recently, I tried
to create yet another one by copy-pasting what I did for the others,
but to my surprise the new site doesn't work.

What I did :

  In /private/etc/hosts, insert the line

  127.0.0.1 localshow.com www.localshow.com

  In /private/etc/apache2/extra/httpd-vhosts.conf, insert the paragraph


ServerName localshow.com
ServerAlias www.localshow.com
DocumentRoot "/Users/myusernamehere/Documents/Sites/Show"
ErrorLog "/private/var/log/apache2/localshow.com-error_log"
CustomLog "/private/var/log/apache2/localshow.com-access_log" common
ServerAdmin w...@coolestguidesontheplanet.com
LoadModule php5_module /usr/libexec/apache2/libphp5.so

Require all granted
DirectoryIndex index.php



   But when I type www.localshow.com in my browser, the URL is not recognized
and I get redirected to a domain seller website.
   The /private/var/log/apache2/localshow.com-error_log and
  /private/var/log/apache2/localshow.com-access_log are empty.

What did I do wrong ?

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



Re: [users@httpd] problem compiling apache

2016-09-20 Thread Pavol Eisenberg
httpd-2.4.20
httpd-2.4.23

I tried also with compiled apr-1.5.2 and aprutil apr-util-1.5.4 but that
also not help. Any advise ?

On Tue, Sep 20, 2016 at 9:16 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Pavol,
>
> On 9/20/16 3:07 PM, Pavol Eisenberg wrote:
> > Hello
> >
> > After I've tried to upgrade my openssl 1.0.2 (ubuntu default) to
> > Openssl 1.1.0 I cannot compile apache with ssl anymore.I also
> > reverse to openssl 1.0.2 but the problem still remain.
> >
> > Can someone point me how to fix this to have working ssl with
> > apache ?
> >
> > Here is my current compile output :
> >
> >
> > /usr/share/apr-1.0/build/libtool --silent --mode=link
> > x86_64-linux-gnu-gcc  -pthread   -L/usr/local/lib -lssl -lcrypto
> > \ -o ab  ab.lo   /usr/lib/x86_64-linux-gnu/libaprutil-1.la
> >  /usr/lib/x86_64-linux-gnu/libapr-1.la
> >  -lm ab.o: In function `main':
> > ab.c:(.text+0x62a8): undefined reference to `SSLv2_client_method'
> > ab.c:(.text+0x653c): undefined reference to `CRYPTO_malloc_init'
> > collect2: error: ld returned 1 exit status Makefile:73: recipe for
> > target 'ab' failed make[2]: *** [ab] Error 1
> >
> > many thanks for help
>
> httpd source version?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJX4Yr8AAoJEBzwKT+lPKRYn/kQAIctRZy+WykFxc2oGVFzHyWu
> PYFHp2zYlex0RornTV7SbAtvNAn9c6OajUHxHVpOT4Hg4V42VqA/SwvxlTzUPYIm
> QuUqml3/uEi/ue0mn/ziCCcfs8jm94H4Wz9jakHD2Mw/TzpiFyhGu1XfXoqNgpxd
> vALzIyejcwhHCoXIpjZe4ivCUZZ5WIIqnGLoiOcOOkprvT2TsSLlRyTXhbMOjWpt
> tm+FmtoFPiFo721Jp+R5/S/S/7+zhaqfzKXYGqnhfBboEhFhugZF1qbdHP9sflCF
> p5sOe22s+IiuIuQ1sIZFVtrG0WCGjdY82UB6NEs3+S7CQXBz0D1JAr7xkIZzQhWm
> c1fN8mQEO/VzMNysvWyk3NlVUmkPTxX/8dETkxjCb6VWRnr5s/DPw1HFoh5Ps27e
> oCHi95sLDXMheUMjCWJ4OyWh/95JU8fCjfOytdyddhFnPHVamANWS6CPVPtModMU
> JJSfyBRKVURtN2pemAEq8tBg8prBH1VnLKCehb+yDBU/8yDuCqpBm3xAHciDjMoH
> WMqHs8BfMbB0QKAKOpSGjbBvfyW0TTUqEJPzTuSJYTvYdwcOt22rlyBW81qw7nZk
> IoyByEk90lfiiElNaBuhI95lFTU+ZejzekJQz+Ro0ZMS3pP29NLjdfxqMNOAG4fI
> XbgGozBpggqp/Jx/OJbj
> =/B6C
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] problem compiling apache

2016-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Pavol,

On 9/20/16 3:07 PM, Pavol Eisenberg wrote:
> Hello
> 
> After I've tried to upgrade my openssl 1.0.2 (ubuntu default) to
> Openssl 1.1.0 I cannot compile apache with ssl anymore.I also
> reverse to openssl 1.0.2 but the problem still remain.
> 
> Can someone point me how to fix this to have working ssl with
> apache ?
> 
> Here is my current compile output :
> 
> 
> /usr/share/apr-1.0/build/libtool --silent --mode=link 
> x86_64-linux-gnu-gcc  -pthread   -L/usr/local/lib -lssl -lcrypto
> \ -o ab  ab.lo   /usr/lib/x86_64-linux-gnu/libaprutil-1.la 
>  /usr/lib/x86_64-linux-gnu/libapr-1.la 
>  -lm ab.o: In function `main': 
> ab.c:(.text+0x62a8): undefined reference to `SSLv2_client_method' 
> ab.c:(.text+0x653c): undefined reference to `CRYPTO_malloc_init' 
> collect2: error: ld returned 1 exit status Makefile:73: recipe for
> target 'ab' failed make[2]: *** [ab] Error 1
> 
> many thanks for help

httpd source version?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJX4Yr8AAoJEBzwKT+lPKRYn/kQAIctRZy+WykFxc2oGVFzHyWu
PYFHp2zYlex0RornTV7SbAtvNAn9c6OajUHxHVpOT4Hg4V42VqA/SwvxlTzUPYIm
QuUqml3/uEi/ue0mn/ziCCcfs8jm94H4Wz9jakHD2Mw/TzpiFyhGu1XfXoqNgpxd
vALzIyejcwhHCoXIpjZe4ivCUZZ5WIIqnGLoiOcOOkprvT2TsSLlRyTXhbMOjWpt
tm+FmtoFPiFo721Jp+R5/S/S/7+zhaqfzKXYGqnhfBboEhFhugZF1qbdHP9sflCF
p5sOe22s+IiuIuQ1sIZFVtrG0WCGjdY82UB6NEs3+S7CQXBz0D1JAr7xkIZzQhWm
c1fN8mQEO/VzMNysvWyk3NlVUmkPTxX/8dETkxjCb6VWRnr5s/DPw1HFoh5Ps27e
oCHi95sLDXMheUMjCWJ4OyWh/95JU8fCjfOytdyddhFnPHVamANWS6CPVPtModMU
JJSfyBRKVURtN2pemAEq8tBg8prBH1VnLKCehb+yDBU/8yDuCqpBm3xAHciDjMoH
WMqHs8BfMbB0QKAKOpSGjbBvfyW0TTUqEJPzTuSJYTvYdwcOt22rlyBW81qw7nZk
IoyByEk90lfiiElNaBuhI95lFTU+ZejzekJQz+Ro0ZMS3pP29NLjdfxqMNOAG4fI
XbgGozBpggqp/Jx/OJbj
=/B6C
-END PGP SIGNATURE-

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



[users@httpd] problem compiling apache

2016-09-20 Thread Pavol Eisenberg
Hello

After I've tried to upgrade my openssl 1.0.2 (ubuntu default) to Openssl
1.1.0 I cannot compile apache with ssl anymore.I also reverse to openssl
1.0.2 but the problem still remain.

Can someone point me how to fix this to have working ssl with apache ?

Here is my current compile output :


/usr/share/apr-1.0/build/libtool --silent --mode=link x86_64-linux-gnu-gcc
-pthread   -L/usr/local/lib -lssl -lcrypto  \
 -o ab  ab.lo   /usr/lib/x86_64-linux-gnu/libaprutil-1.la
/usr/lib/x86_64-linux-gnu/libapr-1.la -lm
ab.o: In function `main':
ab.c:(.text+0x62a8): undefined reference to `SSLv2_client_method'
ab.c:(.text+0x653c): undefined reference to `CRYPTO_malloc_init'
collect2: error: ld returned 1 exit status
Makefile:73: recipe for target 'ab' failed
make[2]: *** [ab] Error 1

many thanks for help

Paul


Re: [users@httpd] Apache: Avoiding users to access 'www.foo.com/subdomain1/'

2016-09-20 Thread Marat Khalili
There's a way to achieve what you ask with mod_rewrite directives in 
.htaccess, but before trying this, why not point foo.com to a separate 
directory?



--

With Best Regards,
Marat Khalili


On 19/09/16 21:41, thomas Armstrong wrote:

Hi.

I have an Apache server, which main rootwebdir is 
'/usr/www/users/foo/' and 'foo.com ' points there. 
However, I have some subdomains pointing within their directories:


|subdomain1.foo.com  ---> 
/usr/www/users/foo/subdomain1 subdomain2.foo.com 
 ---> /usr/www/users/foo/subdomain2 |


This causes me a problem: if anyone types 
'www.foo.com/subdomain1/aboutme.html 
', they find 
'subdomain1.foo.com/aboutme.html 
' with another URL, and I'd 
like to avoid it.


I wondered if there was any way to avoid this (e.g., showing a 404 
page), by using a directive within the '.htaccess' file of 
'/usr/www/users/foo/subdomain1'.


Any other solution is welcome. Thank you very much.