Welcome! Log In Create A New Profile

Advanced

serving static content from a sub url?

October 09, 2009 11:19PM
Hello,

I have a static website on my machine at
/home/me/www/public

I simply want to serve that from a sub url on my domain:
http://www.mydomain.com/mysite

How do I do that?

I tried this but it didn't work...

[code]
server {
listen 80;
server_name www.mydomain.com;
location /mysite {
index index.html;
root /home/me/www/public;
}
}
[/code]


Thanks for the help.
Subject Author Posted

serving static content from a sub url?

cjbottaro October 09, 2009 11:19PM

Re: serving static content from a sub url?

gunblad3 October 10, 2009 12:28AM

Re: serving static content from a sub url?

cjbottaro October 10, 2009 12:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 316
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready