# Re: virtual server configuration

**URL:** <https://www.ruby-forum.com/t/re-virtual-server-configuration/235372>\
**Category:** NGINX\
**Created:** [June 18, 2013, 7:35am UTC](https://www.ruby-forum.com/t/re-virtual-server-configuration/235372 "2013-06-18T07:35:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [June 18, 2013, 7:35am UTC](https://www.ruby-forum.com/t/re-virtual-server-configuration/235372/1 "2013-06-18T07:35:26Z")

</div>

Hi Janet,

It is weird then  
Once you remove the ‘default’ symlink and reload the config, the old  
configuration should no longer take effect.

Have you tried refreshing your browser after restarting/reloading nginx?  
I’m suspecting the old index page was cached by your browser

Best regards,  
Wong Kee W.

On 18/6/2013 3:59 AM, removed\_email\_address@domain.invalid wrote:

> I installed nginx recently and haven’t changed anything in nginx.conf.
> 
> It actually doesn’t include /etc/nginx/sites-available/\* but it does  
> include /etc/nginx/sites-enabled/\*, which is where I put a symbolic link  
> of
> 
> ```
> types_hash_max_size 2048;
> ##
> 
> # nginx-naxsi config
> ##
> 
> ```
> 
> }
> 
> > > …
> > > 
> > > > > On 17 June 2013 15:48, Sajan P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > > > > 
> > > > > > > Did you restart nginx for the new configuration to take effect?  
> > > > > > > Run  
> > > > > > > ‘sudo service nginx restart’ to do this. Also run ‘nginx -t’ to  
> > > > > > > test  
> > > > > > > [image: Noppix LLC Logo]  
> > > > > > > On 06/17/2013 09:36 AM, Janet Valbuena wrote:
> > > > > > > 
> > > > > > > Hi
> > > > > > > 
> > > > > > > I’m new to nginx. I’m trying to configure a virtual server.
> > > > > > > 
> > > > > > > I’ve created a new server file under sites-enabled like this:
> > > > > > > 
> > > > > > > server {  
> > > > > > > listen 80; ## listen for ipv4; this line is default and  
> > > > > > > implied  
> > > > > > > }  
> > > > > > > fastcgi\_param PATH\_TRANSLATED  
> > > > > > > $document\_root$fastcgi\_path\_info;  
> > > > > > > fastcgi\_param SCRIPT\_FILENAME  
> > > > > > > $document\_root$fastcgi\_script\_name;  
> > > > > > > }  
> > > > > > > }
> > > > > > > 
> > > > > > > Is there anything wrong with that?  
> > > > > > > When I type in blogtest/index.php on the browser I get the  
> > > > > > > default  
> > > > > > > config, which points to /usr/share/nginx/www/, even though I  
> > > > > > > deleted the  
> > > > > > > symbolic link to sites-available/default from sites-enabled.
> > > > > > > 
> > > > > > > Note: /usr/share/nginx/cakephptest/app/webroot/index.php does  
> > > > > > > exist.  
> > > > > > > removed\_email\_address@domain.invalid  
> > > > > > > [nginx Info Page](http://mailman.nginx.org/mailman/listinfo/nginx)
> 
> – [image: WiFi SPARK] [image: Facebook] [http://facebook.com/wifispark](http://facebook.com/wifispark)  
> [image: Twitter][http://twitter.com/wifispark](http://twitter.com/wifispark) _Janet Valbuena_ Software  
> Developer _t:_ 0844 848 9555 | \*f: \*01626 834 745 \*w: \*[wifispark.com](http://wifispark.com) \<  
> [http://www.wifispark.com/](http://www.wifispark.com/)\> WiFi SPARK Ltd, Teignbridge Business Centre,  
> Cavalier Road, Newton Abbot, Devon, TQ12 6TZ This message and its  
> attachments are deemed confidential. If you are not the intended  
> recipient,  
> you are strictly prohibited to disclose, copy, distribute or take any  
> action in relation to the contents of this message. WiFi SPARK accepts  
> no  
> liability for virus transmission, for the content of this email, or for  
> the  
> consequences of any actions taken on the basis of the information  
> provided,  
> unless that information is subsequently confirmed in writing.  
> -------------- next part -------------- An HTML attachment was  
> scrubbed…  
> URL: \<  
> [http://mailman.nginx.org/pipermail/nginx/attachments/20130617/89980779/attachment-0001.html](http://mailman.nginx.org/pipermail/nginx/attachments/20130617/89980779/attachment-0001.html)

---

<div class="post-metadata">

**Author:** ![Wong\_Kee\_W](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/c2a13f/32.png) [@Wong\_Kee\_W](https://www.ruby-forum.com/u/Wong_Kee_W)\
**Post date:** [June 18, 2013, 11:32am UTC](https://www.ruby-forum.com/t/re-virtual-server-configuration/235372/2 "2013-06-18T11:32:05Z")

</div>

Hi Wong, hi Vasil

I did restart nginx and reloaded the browser while I was setting up this  
virtual server yesterday several times.

Strangely, this morning when I started my computer all worked well.  
Maybe I  
needed to restart the network or something else?

Thanks very much for your help.

Janet

On 18 June 2013 06:34, Wong Kee W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Wong Kee W.
> 
> > worker\_processes 4;  
> > # Basic Settings  
> > # server\_name\_in\_redirect off;
> > 
> > ```
> > # gzip_buffers 16 8k;
> > 
> > ```
> > 
> > Thanks  
> > your
> > 
> > > > > > nginx -t  
> > > > > > Run
> > > > > > 
> > > > > > > > p: (563) 726-0371  
> > > > > > > > server {  
> > > > > > > > # as directory, then fall back to 404  
> > > > > > > > fastcgi\_split\_path\_info ^(.+.php)(/.+)$;  
> > > > > > > > When I type in blogtest/index.php on the browser I get the  
> > > > > > > > Thanks  
> > > > > > > > [image: Twitter][http://twitter.com/wifispark](http://twitter.com/wifispark) _Janet Valbuena_ Software  
> > > > > > > > URL: \<

[http://mailman.nginx.org/pipermail/nginx/attachments/20130617/89980779/attachment-0001.html](http://mailman.nginx.org/pipermail/nginx/attachments/20130617/89980779/attachment-0001.html)

> > 
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

–  
[image: WiFi SPARK]  
[image: Facebook] [http://facebook.com/wifispark](http://facebook.com/wifispark) [image:  
Twitter][http://twitter.com/wifispark](http://twitter.com/wifispark)  
_Janet Valbuena_  
Software Developer  
_t:_ 0844 848 9555 | \*f: \*01626 834 745  
\*w: \*[wifispark.com](http://wifispark.com) [http://www.wifispark.com/](http://www.wifispark.com/)

WiFi SPARK Ltd, Teignbridge Business Centre, Cavalier Road, Newton  
Abbot,  
Devon, TQ12 6TZ

This message and its attachments are deemed confidential. If you are not  
the intended recipient, you are strictly prohibited to disclose, copy,  
distribute or take any action in relation to the contents of this  
message.  
WiFi SPARK accepts no liability for virus transmission, for the content  
of  
this email, or for the consequences of any actions taken on the basis of  
the information provided, unless that information is subsequently  
confirmed  
in writing.
