使用apache配置vhost

I have the following vhost:

<VirtualHost *:9090>
    DocumentRoot /ebs1/apache/www/html/sites/example
    <Directory "/ebs1/apache/www/html/sites/example">
        Options -Indexes
        AllowOverride All
    </Directory>
    ServerName example.com
    ServerAlias *.example.com
    ErrorLog /ebs1/apache/log/error_log_example.com
    CustomLog /ebs1/apache/log/access_log_example.com personalizado
</VirtualHost>

Instead of repeating the directory "/ebs1/apache/www/html/sites/example" twice is it possible to only use it once?

You can create a separate <Directory> configuration (outside of the <VirtualHost> block) that covers all your virtual hosts, assuming their respective directories are below it:

<Directory "/ebs1/apache/www/html/sites">
    Options -Indexes
    AllowOverride All
</Directory>