Oliver Joseph Ash

less info
171 reputation
1310
bio website twitter.com/OliverJAsh
location Flitwick/Leeds
age 21
visits member for 2 years, 7 months
seen Feb 18 at 22:42

I'm a student, and in [all of] my spare time I'm learning JavaScript.


Jan
24
comment Linux mail on VPS: suspicious process running under …
What does changing the email alert setting do?
Jan
12
comment Apache redirect domain and all subdomains
This works perfectly. Really appreciate you breaking it down, helped me to learn a bit! Thank you so much.
Jan
11
comment Automatic wildcard subdomains on Apache
Could I just do ServerName *.domain.com?
Jan
11
comment Automatic wildcard subdomains on Apache
Thanks. Why ServerName catchall.domain.com? Why not just have ServerAlias *.domain.com?
Dec
2
comment PPTP installation on CentOS 5 not working (Kernel support for PPP?)
Ahh, I see! Thank you. If they are unwilling to enable the ppp kernel module, is it worth me trying OpenVPN instead of PPTPD, or will I have the same problems?
Apr
28
comment Apache slow at responding
I just checked and it's already off, so unfortunately that isn't the problem.
Mar
6
comment SSL and ServerAlias on one Apache server with multiple domains
Thank you! Is my pastebin completely correct? I have all of this inline in my httpd.conf file. Not sure if that is a best practice. I like to follow best practices :P But thank you for your help, your answer helped me to understand, and made me aware of just how amateur I am at all of this…
Mar
6
comment SSL and ServerAlias on one Apache server with multiple domains
@TomH Sorry for the misunderstanding but I only wanted one domain to be available by SSL (in this case songtagapp.com).
Mar
6
comment SSL and ServerAlias on one Apache server with multiple domains
This works - 2 normal sites, SSL on one. Is this the best way to resolve my original question? hastebin.com/suyigapeyu.apache
Mar
6
comment SSL and ServerAlias on one Apache server with multiple domains
I was having a play around and I've got it to work this way - without another public IP address. Is this okay? hastebin.com/nujorukide.apache
Mar
6
comment SSL and ServerAlias on one Apache server with multiple domains
So, I must have two public IP addresses? In your example, SSL is enabled for both VirtualHosts. In my given scenario, I only need SSL on one… I don't know if that makes any difference.
Mar
6
comment Automatic Apache Alias definitions
What would the RewriteRule look like in this case?
Mar
6
comment Automatic Apache Alias definitions
Because the routing is to the public folder, not the root - /hello = /var/www/hello/public.
Mar
6
comment SSL and ServerAlias on one Apache server with multiple domains
Thanks, great explanation. Given those circumstances, what solution would you advise?
Jan
7
comment Apache Virtual Host with Alias
There you go ;)
Jan
7
comment Apache Virtual Host with Alias
Found the problem! Set everything up like you did. This helped me then to realise - the RewriteBase must be equal to the alias. So, if my work was in the folder /public, but the alias was /mayor, then the RewriteBase also had to be /mayor. Previous I put RewriteBase /public. This was the problem all along. Thank you very, very much for your help. Could you please update your answer to point out that the RewriteBase must match the alias URL and not the actual path it leads to? In the unlikely scenario anyone else runs into the same problem.
Jan
7
comment Apache Virtual Host with Alias
Thanks for going to these lengths to help me sort my problem. That is sort of what I'm trying to do - the rewrite works on the main host (localhost), however, when I set up a virtual host, this is when the rewrite starts to throw errors. Can you try adding a virtual host to your setup and see what that produces for you?
Jan
7
comment Apache Virtual Host with Alias
Without RewriteBase / I get this error: [Sat Jan 07 16:08:07 2012] [error] [client ::1] script '/usr/docs/oliverash.me/public/index.php' not found or unable to stat not found or unable to stat`. And with RewriteBase I get this error: [Sat Jan 07 16:06:46 2012] [error] [client ::1] File does not exist: /usr/docs/oliverash.me/public/usr. You see, the rewrite is going via the path of the virtual host.
Jan
7
comment Apache Virtual Host with Alias
I did that, and here's the log for when this rewrite is accessed: jsfiddle.net/OliverJAsh/qsSev - any chance of debugging that?!
Jan
7
comment Apache Virtual Host with Alias
No. The index.php is in the public folder of the alias, so /usr/docs/uni/tmosct/public. I've tried using RewriteBase with no luck :( All I added was RewriteBase /.