Apache2 directory relocation /var/www/html

Discussion in 'Apache' started by wynd0, Jun 23, 2018.

  1. #1
    Hey everyone!
    first time post. I am using ubuntu to host a local apache2 web server. Since the computer I'm using has extremely limited internal storage, I wish to migrate the /var/www/html directory to an external hard disk. The amount of files I will be serving far exceeds the storage capacity. Is there a way to tell apache2 to pull the files being served from a different directory other than that specific location at /var/www/html?

    I'm a relatively new user in apache2. Any advice/input is greatly appreciated. Thanks
     
    wynd0, Jun 23, 2018 IP
  2. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #2
    First, you have to mount the external hard disk and then mention the path in apache config.
     
    hostechsupport, Jun 25, 2018 IP