I posted this question in "Ask Ubuntu" but no replies.

I have installed Apache2 on Ubuntu LTS 16.04. I looked at the /home/ubuntu/.viminfo file and it contained the following lines.

# Registers:
"0      LINE    0
      ProxyPass /app/
"1      LINE    0
    ProxyPass /app1/
"2      LINE    0
    ProxyPass /app1/
"3      LINE    0
    ProxyPass /app1/
""-     CHAR    0

I changed the entries to but running

sudo /etc/init.d/apache2 restart

changes them back to (I no longer have a server with the private IP

There is clearly some configuration file that sets

ProxyPass /app1/


sudo /etc/init.d/apache2 restart

is called but I was unable to find anything, along those lines, in /etc/apache2/apache2.conf or in /etc/apache2/httpd.conf or by calling

sudo grep app1 /etc/apache2/*.*
  • @icarus Why are you asking me? – techraf Nov 16 '16 at 6:51
  • @icarus Kindly please stop bothering me. I did not review your suggested edit and have no interest in answering your concerns. – techraf Nov 16 '16 at 7:35

The ~/.viminfo file for a user (in this case ubuntu) contains various bits of information to persist state for the vim editor between runs. vi and vim have registers which are used to store things, the registers with numeric names 1 through 9 form a stack. If you have vim then :help quote_number should tell you about them.

The upshot of all this is that if you edit this file using vim, and then exit it, this file will be regenerated with the current stack of registers.

This is almost certainly nothing to do with the sudo apache restart.

|improve this answer|||||
  • You are absolutely right. I never would have expected that. Thanks very much, – OtagoHarbour Nov 15 '16 at 1:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.