Hello , noob here!
I am setting up my first server folowing this 2 howto's
first and
second
i do own a domain name (who serves my wordpress in an ISP)and i want my brand new nginx server (an old pc somewhere in my home) as a owncloud service .
I went to my domains cp and add a new DNS record , let's say server.mydomain.com with the right static ip of my router .
then i open the right ports to the router 80&22 (ssh)
and finished my owncloud setup like
here
But im getting a 502 bad gateway error
My problem I quess is in my vhost configuration (noob here

)
because i use a subdomain !
I try some configurations but i have to admit i don't understund them!
for examble i use
server {
listen server.mydomain.com;
server_name server.mydomain.com;
root /var/www/server.mydomain.com/web;
if ($http_host != "server.mydomain.com") {
rewrite ^ http://server.mydomain.com$request_uri permanent;
}
configuration and i get "Welcome to nginx!" and the info.php works under server.mydomain.com/info.php but the owncloud instalation not!
when i change the listen to 80 i get 502 bad gateway
can someone point me (or better show me) the right configuration?
Thanks
Recent comments
1 day 3 hours ago
1 day 8 hours ago
1 day 12 hours ago
1 day 14 hours ago
2 days 4 hours ago
2 days 4 hours ago
2 days 9 hours ago
2 days 16 hours ago
2 days 17 hours ago
2 days 18 hours ago