Question

How to easily edit multiple Apache .conf files?

Hi,

I need to reconfigure a few (sub-) domains and really would like to avoid editing these virtual host .conf files with sudo nano (it’s unworkable for me).

But when editing these .conf files locally, Filezilla fails to upload them with permission issues.

My question: is there an easier / more workable way to edit .conf files then nano?

Subscribe
Share

Hi @dizid,

nice catch! I’ll be sure to check it out myself as well.

One solution i found is editing with Visual Studio Code and rmate!

https://medium.com/@prtdomingo/editing-files-in-your-linux-virtual-machine-made-a-lot-easier-with-remote-vscode-6bb98d0639a4

Works!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @dizid,

I’ll recommend using VIM however if you are unfamiliar with it, it might prove more of a challenge than just using nano.

Regarding Filezilla, I’ll suggest checking the user using to connect via FTP and what permissions it has.

Kind regards, Kalin