My question was very specific and I doubt anyone would have it...anyhow...now I've got another question so here is version 2:
My vhosts file:
[code]
# Configuration for styleaday.com
# Date: November 10, 2010
#
#
http{
server {
listen 80;
server_name www.styleaday.com;
location / {
root /home/adam/sites/styleaday.com/public/;
index index.php;
}
}
server {
listen 80;
server_name styleaday.com;
access_log /home/adam/sites/styleaday.com/log/access.log;
error_log /home/adam/sites/styleaday.com/log/error.log;
root /home/adam/sites/styleaday.com/
location / {
root /home/adam/sites/styleaday.com/public/;
index index.php;
}
}
}
[/code]
I don't have a default vhost as I want to get this working before I do anything else. Currently "styleaday" is the only file in sites-available and I have it symlinked to sites-enabled yet for some reason nginx isn't using it.
Could you not have just left your question and appended a solution? It'd help others who have the same issue in the future.
Updated the first post...need helpz
Uhm, you don't need a default host. Just set up the ones you need.
Fixed it. Turns out I messed up symbolic links without realizing it.
Anyhow now I'm having another problem... my rewrites don't work in .htaccess. Here's one:
location / {
rewrite ^admin/?$ index.php?adminload=1 permanent;
rewrite ^admin/([A-Za-z0-9_-]+)/?$ index.php?module=$1&adminload=1 permanent;
rewrite ^admin/([A-Za-z0-9_-]+)/([A-Za-z0-9_]+)/?$ index.php?module=$1&modmethod=$2&adminload=1 permanent;
rewrite ^admin/([A-Za-z0-9_-]+)/([A-Za-z0-9_]+)/([A-Za-z0-9_/-]+)$ index.php?module=$1&modmethod=$2&args=$3&adminload=1 permanent;
rewrite ^image/([A-Za-z0-9_]+)/(.*)$ index.php?module=image&modmethod=$1&args=$2 permanent;
rewrite ^([A-Za-z0-9_-]+)/?$ index.php?module=$1 permanent;
rewrite ^([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)/?$ index.php?module=$1&modmethod=$2 permanent;
rewrite ^([A-Za-z0-9_-]+)/([A-Za-z0-9_]+)/([@A-Za-z0-9_/-]+)$ index.php?module=$1&modmethod=$2&args=$3 permanent;
}
[code]
Sorry, you need to Log In to post a reply to this thread.