子域指向ubuntu中的文件夹并允许文件夹访问

时间:2018-10-04 10:17:54

标签: php .htaccess ssl virtualhost

下面是我的文件夹结构:

Data A;
  Input Scenario $ Product $ Plant $ Quantity;
  Datalines;
XX A 1 100
XX B 1 200
XX C 1 300
XX A 2 333
XX D 2 888
YY F 1 100
YY B 1 200
YY C 1 300
YY A 2 333
YY D 2 888
;;;

* Could not find SAS-standard;
Data MyColorList;
  Length FillColor $7.;
  Input FillColor $ @@;
  Nr = _N_;
  Datalines;
#00FF00 #00FFFF #70DB93 #D9D919  
#A67D3D #FF7F00 #855E42 #545454  
#238E23 #4E2F2F #8E236B #DB70DB  
#8C1717 #DB9370 #D8D8BF
;;;

%Let VarName = Plant;
Proc SQL;
  Create Table DAttrs As Select Distinct &VarName. As Value From A Order By     &VarName.;
Quit;

Data DAttrs (Drop=rc Nr);
  If _N_ eq 1 Then Do;
    Declare Hash H (Dataset: "MyColorList");
    H.Definekey('Nr');
    H.Definedata('FillColor');
    H.Definedone();
    If 0 Then Set MyColorList;
  End;
  Set DAttrs;
  ID = "&VarName.";
  Nr = mod(_N_, 15);
  rc = H.Find();
Run;

Proc SGPlot Data=A (Where=(Scenario = 'XX')) 
            DAttrMap=DAttrs ;
  VBar Product / Response=Quantity Stat=Sum 
                 Group=&VarName. AttrID=&VarName. 
             GroupOrder=ascending Dataskin=Sheen 
                 Transparency=0.4 NoStatLabel ;
Run;

Proc SGPlot Data=A (Where=(Scenario = 'YY')) 
            DAttrMap=DAttrs ;
  VBar Product / Response=Quantity Stat=Sum 
             Group=&VarName. AttrID=&VarName. 
             GroupOrder=ascending Dataskin=Sheen 
                 Transparency=0.4 NoStatLabel;
Run;

我已使用以下代码将-media -js -css -customer -index.html -web-service -index.html 重定向到customer.example.com文件夹

/var/www/html/customer

当我尝试从<VirtualHost _default_:443> ServerName customer.example.com ServerAlias customer.example.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html/customer/ SSLEngine on SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem <Directory "/var/www/html"> AllowOverride All </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> 访问js and css of media folder时,它将为所有js和CSS请求返回一个customer/index.html文件。

我还想访问Web服务文件夹,因为我的api属于该文件夹。

对此有什么解决方案吗?

0 个答案:

没有答案