Welcome! Log In Create A New Profile

Advanced

the alias don't show

Michel Vega Fuenzalida
April 03, 2010 12:20PM
Hi list, sorry my english.

I can show .php files, with this configuration in the file www.misito.cu
in /etc/nginx/site-enable/:
server {
listen www.miserver.cu:80;
server_name www.misito.cu;
access_log /var/log/nginx/access-miserver.log;
error_log /var/log/nginx/error-miserver.log;

location / {
root /var/www/test;
index index.php;
}

location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/test$fastcgi_script_name;
}
}

I like show the Web Site that is in /home/pepe/SCJM/, that have like
index file: index.php, all this Site is in .php file, when I add that at
the file www.misitio.cu:
location /SCJM {
root /home/michelvf;
index index.php;
}

the browser: http://www.misitio.cu/SCJM/, show this text:
No input file specified.

Bat when I do that:
cd /var/www/test/
ln -s /home/pepe/SCJM

the browser yes show the Web Site.

Who I cant show the Site in /home/pepe/SCJM that have file .php using
the location directive?

Regards.

--
Usemos el Software Libre "Con todos y para el bien de todos"
José Martí, 26 de noviembre de 1891, Tampa.

Lic. Michel Vega Fuenzalida. Usuario Linux: 353763
Coordinador del Grupo Linux Pinero
Administrador de Red
Hospital General Docente "Héroes de Baire",
Nueva Gerona, Isla de la Juventud, Cuba.

Teléfono: +53 46 323012.



--

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

the alias don't show

Michel Vega Fuenzalida April 03, 2010 12:20PM

Re: the alias don't show

Maxim Dounin April 03, 2010 05:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
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